diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-10-28 16:28:04 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-10-28 22:45:57 +0100 |
commit | 259f7a93b1e679b73026352b40029375aa94db7c (patch) | |
tree | 353259f8f7622375aa0a584e31ad16c20f95a6a3 /nixos/modules/services/misc | |
parent | 44d6d887390bbf0fd99d2bf95d75e6292357fd50 (diff) | |
download | nixlib-259f7a93b1e679b73026352b40029375aa94db7c.tar nixlib-259f7a93b1e679b73026352b40029375aa94db7c.tar.gz nixlib-259f7a93b1e679b73026352b40029375aa94db7c.tar.bz2 nixlib-259f7a93b1e679b73026352b40029375aa94db7c.tar.lz nixlib-259f7a93b1e679b73026352b40029375aa94db7c.tar.xz nixlib-259f7a93b1e679b73026352b40029375aa94db7c.tar.zst nixlib-259f7a93b1e679b73026352b40029375aa94db7c.zip |
Rename environment.nix -> nix.package
Diffstat (limited to 'nixos/modules/services/misc')
-rw-r--r-- | nixos/modules/services/misc/nix-daemon.nix | 20 | ||||
-rw-r--r-- | nixos/modules/services/misc/nix-gc.nix | 2 |
2 files changed, 11 insertions, 11 deletions
diff --git a/nixos/modules/services/misc/nix-daemon.nix b/nixos/modules/services/misc/nix-daemon.nix index d78c7fe2822e..441b8606b01f 100644 --- a/nixos/modules/services/misc/nix-daemon.nix +++ b/nixos/modules/services/misc/nix-daemon.nix @@ -6,7 +6,7 @@ let cfg = config.nix; - inherit (config.environment) nix; + nix = cfg.package; makeNixBuildUser = nr: { name = "nixbld${toString nr}"; @@ -55,16 +55,16 @@ in options = { - environment.nix = mkOption { - type = types.path; - default = pkgs.nix; - description = '' - This option specifies the Nix package instance to use throughout the system. - ''; - }; - nix = { + package = mkOption { + type = types.path; + default = pkgs.nix; + description = '' + This option specifies the Nix package instance to use throughout the system. + ''; + }; + maxJobs = mkOption { default = 1; example = 2; @@ -302,7 +302,7 @@ in } // optionalAttrs cfg.distributedBuilds { - NIX_BUILD_HOOK = "${config.environment.nix}/libexec/nix/build-remote.pl"; + NIX_BUILD_HOOK = "${nix}/libexec/nix/build-remote.pl"; NIX_REMOTE_SYSTEMS = "/etc/nix/machines"; NIX_CURRENT_LOAD = "/run/nix/current-load"; } diff --git a/nixos/modules/services/misc/nix-gc.nix b/nixos/modules/services/misc/nix-gc.nix index ad6889ce1428..0d7bc13b2ee6 100644 --- a/nixos/modules/services/misc/nix-gc.nix +++ b/nixos/modules/services/misc/nix-gc.nix @@ -52,7 +52,7 @@ in systemd.services.nix-gc = { description = "Nix Garbage Collector"; - script = "exec ${config.environment.nix}/bin/nix-collect-garbage ${cfg.options}"; + script = "exec ${config.nix.package}/bin/nix-collect-garbage ${cfg.options}"; startAt = optionalString cfg.automatic cfg.dates; }; |