about summary refs log tree commit diff
path: root/nixos/modules/system/activation/top-level.nix
diff options
context:
space:
mode:
authorGleb Peregud <gleber.p@gmail.com>2017-11-18 23:33:24 +0100
committerGleb Peregud <gleber.p@gmail.com>2017-11-19 19:42:54 +0100
commit2f6148c7433c08c7b32e772f7557fd08d39f48ab (patch)
treeb3353452527e8614912180fc846d4988c414f45d /nixos/modules/system/activation/top-level.nix
parentf1caf10ec96708e198a0e9242104d2381ea4f0ca (diff)
downloadnixlib-2f6148c7433c08c7b32e772f7557fd08d39f48ab.tar
nixlib-2f6148c7433c08c7b32e772f7557fd08d39f48ab.tar.gz
nixlib-2f6148c7433c08c7b32e772f7557fd08d39f48ab.tar.bz2
nixlib-2f6148c7433c08c7b32e772f7557fd08d39f48ab.tar.lz
nixlib-2f6148c7433c08c7b32e772f7557fd08d39f48ab.tar.xz
nixlib-2f6148c7433c08c7b32e772f7557fd08d39f48ab.tar.zst
nixlib-2f6148c7433c08c7b32e772f7557fd08d39f48ab.zip
nixos/system: make switch-to-configuration script pure.
Fixes #28443

Fixed few invocations to `systemctl` to have an absolute path. Additionally add
LOCALE_ARCHIVE so that perl stops spewing warning messages.
Diffstat (limited to 'nixos/modules/system/activation/top-level.nix')
-rw-r--r--nixos/modules/system/activation/top-level.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/activation/top-level.nix b/nixos/modules/system/activation/top-level.nix
index 67cb2264e3f3..0c50241f2edf 100644
--- a/nixos/modules/system/activation/top-level.nix
+++ b/nixos/modules/system/activation/top-level.nix
@@ -26,7 +26,6 @@ let
      cloner false config.nesting.children
   ++ cloner true config.nesting.clone;
 
-
   systemBuilder =
     let
       kernelPath = "${config.boot.kernelPackages.kernel}/" +
@@ -83,6 +82,7 @@ let
       done
 
       mkdir $out/bin
+      export localeArchive="${config.i18n.glibcLocales}/lib/locale/locale-archive"
       substituteAll ${./switch-to-configuration.pl} $out/bin/switch-to-configuration
       chmod +x $out/bin/switch-to-configuration