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:
parent
e91ffd0ff3
commit
4e5b313174
2 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Reference in a new issue