diff options
Diffstat (limited to 'nixos/modules/system/activation/top-level.nix')
-rw-r--r-- | nixos/modules/system/activation/top-level.nix | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/nixos/modules/system/activation/top-level.nix b/nixos/modules/system/activation/top-level.nix index 6fd8bf241f50..ada961316755 100644 --- a/nixos/modules/system/activation/top-level.nix +++ b/nixos/modules/system/activation/top-level.nix @@ -80,9 +80,9 @@ let # Putting it all together. This builds a store path containing # symlinks to the various parts of the built configuration (the - # kernel, the Upstart services, the init scripts, etc.) as well as a - # script `switch-to-configuration' that activates the configuration - # and makes it bootable. + # kernel, systemd units, init scripts, etc.) as well as a script + # `switch-to-configuration' that activates the configuration and + # makes it bootable. system = pkgs.stdenv.mkDerivation { name = "nixos-${config.system.nixosVersion}"; preferLocalBuild = true; @@ -99,15 +99,6 @@ let activationScript = config.system.activationScripts.script; nixosVersion = config.system.nixosVersion; - jobs = map (j: j.name) (attrValues config.jobs); - - # Pass the names of all Upstart tasks to the activation script. - tasks = attrValues (mapAttrs (n: v: if v.task then ["[${v.name}]=1"] else []) config.jobs); - - # Pass the names of all Upstart jobs that shouldn't be restarted - # to the activation script. - noRestartIfChanged = attrValues (mapAttrs (n: v: if v.restartIfChanged then [] else ["[${v.name}]=1"]) config.jobs); - configurationName = config.boot.loader.grub.configurationName; # Needed by switch-to-configuration. |