diff options
| author | Daiderd Jordan <daiderd@gmail.com> | 2018-01-03 20:10:24 +0100 |
|---|---|---|
| committer | Daiderd Jordan <daiderd@gmail.com> | 2018-01-03 20:10:24 +0100 |
| commit | f63f4fe3fb7449fcd4526474f5b0e87190ca4a74 (patch) | |
| tree | 39bdc96386c67a3c369c7a1f4cdb086e792c4c3e /modules/services | |
| parent | 8b10783bda1e2169b456218424b3ca61171474ef (diff) | |
nix: reload daemon when nix.conf changes
Diffstat (limited to 'modules/services')
| -rw-r--r-- | modules/services/nix-daemon.nix | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/modules/services/nix-daemon.nix b/modules/services/nix-daemon.nix index f29d8a9..92cf422 100644 --- a/modules/services/nix-daemon.nix +++ b/modules/services/nix-daemon.nix @@ -11,7 +11,7 @@ in services.nix-daemon.enable = mkOption { type = types.bool; default = false; - description = "Whether to activate system at boot time."; + description = "Whether to enable the nix-daemon service."; }; services.nix-daemon.logFile = mkOption { @@ -35,13 +35,7 @@ in config = mkIf cfg.enable { - environment.extraInit = '' - # Set up secure multi-user builds: non-root users build through the - # Nix daemon. - if [ "$USER" != root -o ! -w /nix/var/nix/db ]; then - export NIX_REMOTE=daemon - fi - ''; + nix.useDaemon = true; launchd.daemons.nix-daemon = { command = "${config.nix.package}/bin/nix-daemon"; |
