Skip to content

Commit

Permalink
nixos/activatable-system: Move legacy variables to top-level
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Jun 28, 2023
1 parent 990b72f commit 7891c8c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 0 additions & 4 deletions nixos/modules/system/activation/activatable-system.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down
10 changes: 10 additions & 0 deletions nixos/modules/system/activation/top-level.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7891c8c

Please sign in to comment.