diff options
| author | Malo Bourgon <mbourgon@gmail.com> | 2022-08-14 13:38:11 -0700 |
|---|---|---|
| committer | Malo Bourgon <mbourgon@gmail.com> | 2022-08-16 10:41:51 -0700 |
| commit | 08edc0e19ac33435bd2b5dede373a2bea9f13b49 (patch) | |
| tree | 0577383ea890ac23e17878ff693c6f8a8522d41b /modules/services | |
| parent | 7e74c1c9fbb19638d95933b8bcac1757a184519e (diff) | |
Update/adapt daemon CPU/IO priority options in `nix` module
Stop using `nice` related options like NixOS, and because `launchd`
recommends using `ProcessType` instead. Note this commit also changes
the default `ProcessType` for the `nix-daemon` from `Interactive` to
`Standard`.
Diffstat (limited to 'modules/services')
| -rw-r--r-- | modules/services/nix-daemon.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/services/nix-daemon.nix b/modules/services/nix-daemon.nix index 735d92c..5e87e51 100644 --- a/modules/services/nix-daemon.nix +++ b/modules/services/nix-daemon.nix @@ -48,9 +48,8 @@ in "/bin/sh" "-c" "/bin/wait4path ${config.nix.package}/bin/nix-daemon && exec ${config.nix.package}/bin/nix-daemon" ]; - serviceConfig.ProcessType = mkDefault "Interactive"; - serviceConfig.LowPriorityIO = config.nix.daemonIONice; - serviceConfig.Nice = config.nix.daemonNiceLevel; + serviceConfig.ProcessType = config.nix.daemonProcessType; + serviceConfig.LowPriorityIO = config.nix.daemonIOLowPriority; serviceConfig.Label = "org.nixos.nix-daemon"; # must match daemon installed by Nix regardless of the launchd label Prefix serviceConfig.SoftResourceLimits.NumberOfFiles = mkDefault 4096; serviceConfig.StandardErrorPath = cfg.logFile; |
