diff options
author | Robert Hensing <robert@roberthensing.nl> | 2023-06-28 12:48:15 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2023-06-28 12:48:59 +0200 |
commit | 7891c8cdafff3bb59476e48136964dcfe933d7df (patch) | |
tree | f2b67d105f478e274ebb645914f2313801aede0f /nixos/modules | |
parent | 990b72f6af560fd43884338f2d442230d4c18137 (diff) | |
download | nixpkgs-7891c8cdafff3bb59476e48136964dcfe933d7df.tar nixpkgs-7891c8cdafff3bb59476e48136964dcfe933d7df.tar.gz nixpkgs-7891c8cdafff3bb59476e48136964dcfe933d7df.tar.bz2 nixpkgs-7891c8cdafff3bb59476e48136964dcfe933d7df.tar.lz nixpkgs-7891c8cdafff3bb59476e48136964dcfe933d7df.tar.xz nixpkgs-7891c8cdafff3bb59476e48136964dcfe933d7df.tar.zst nixpkgs-7891c8cdafff3bb59476e48136964dcfe933d7df.zip |
nixos/activatable-system: Move legacy variables to top-level
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/system/activation/activatable-system.nix | 4 | ||||
-rw-r--r-- | nixos/modules/system/activation/top-level.nix | 10 |
2 files changed, 10 insertions, 4 deletions
diff --git a/nixos/modules/system/activation/activatable-system.nix b/nixos/modules/system/activation/activatable-system.nix index ee956434cce..b179fce417e 100644 --- a/nixos/modules/system/activation/activatable-system.nix +++ b/nixos/modules/system/activation/activatable-system.nix @@ -22,10 +22,6 @@ in system.systemBuilderArgs = { activationScript = config.system.activationScripts.script; dryActivationScript = config.system.dryActivationScript; - installBootLoader = config.system.build.installBootLoader; - localeArchive = "${config.i18n.glibcLocales}/lib/locale/locale-archive"; - distroId = config.system.nixos.distroId; - perl = pkgs.perl.withPackages (p: with p; [ ConfigIniFiles FileSlurp ]); }; system.systemBuilderCommands = '' diff --git a/nixos/modules/system/activation/top-level.nix b/nixos/modules/system/activation/top-level.nix index de7615a3ea3..0fb8bffebdd 100644 --- a/nixos/modules/system/activation/top-level.nix +++ b/nixos/modules/system/activation/top-level.nix @@ -336,6 +336,16 @@ in ''; system.systemBuilderArgs = { + + # Legacy environment variables. These were used by the activation script, + # but some other script might still depend on them, although unlikely. + installBootLoader = config.system.build.installBootLoader; + localeArchive = "${config.i18n.glibcLocales}/lib/locale/locale-archive"; + distroId = config.system.nixos.distroId; + perl = pkgs.perl.withPackages (p: with p; [ ConfigIniFiles FileSlurp ]); + # End if legacy environment variables + + # Not actually used in the builder. `passedChecks` is just here to create # the build dependencies. Checks are similar to build dependencies in the # sense that if they fail, the system build fails. However, checks do not |