1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-13 20:30:02 +00:00

services.activate-system: retry if activation fails

this might fail a few times when /nix/store is on another filesystem.
This commit is contained in:
Daiderd Jordan 2016-12-14 21:15:02 +01:00
parent e91ffd0ff3
commit 4e5b313174
No known key found for this signature in database
GPG key ID: D02435D05B810C96
2 changed files with 5 additions and 4 deletions

View file

@ -38,10 +38,11 @@ in
};
};
config = {
config = mkIf cfg.enable {
launchd.daemons.activate-system = mkIf cfg.enable {
launchd.daemons.activate-system = {
serviceConfig.Program = "${activateScript}";
serviceConfig.KeepAlive.SuccessfulExit = false;
serviceConfig.RunAtLoad = true;
};

View file

@ -39,9 +39,9 @@ in
};
};
config = {
config = mkIf cfg.enable {
launchd.daemons.nix-daemon = mkIf cfg.enable {
launchd.daemons.nix-daemon = {
serviceConfig.Program = "${cfg.profile}/bin/nix-daemon";
serviceConfig.KeepAlive = true;
serviceConfig.ProcessType = "Background";