feat: improve cache-builder service trigger

This commit is contained in:
2026-04-13 11:53:41 +02:00
parent f7d86e7718
commit df2ee459a1

View File

@@ -43,15 +43,10 @@
path = [ config.nix.package ]; path = [ config.nix.package ];
}; };
systemd.timers.cache-builder = { # restart cache-builder after every nixos switch (non-blocking)
description = "Periodically build all host closures"; system.activationScripts.cache-builder = lib.stringAfter [ "specialfs" ] ''
wantedBy = [ "timers.target" ]; ${config.systemd.package}/bin/systemctl restart --no-block cache-builder.service || true
timerConfig = { '';
OnUnitActiveSec = "15min";
OnBootSec = "5min";
Persistent = true;
};
};
}; };
}; };
} }