summary refs log tree commit diff
path: root/nixos/modules/system/boot/stage-2-init.sh
diff options
context:
space:
mode:
authorSander van der Burg <svanderburg@gmail.com>2021-03-15 19:34:09 +0100
committerSander van der Burg <sander.van.der.burg@mendix.com>2021-03-22 20:41:12 +0100
commit5c8ed06fc9dbdf92681101d4fd91c690293ae007 (patch)
tree477207c77b4fc66d62c2aec2218011edd9fd72a1 /nixos/modules/system/boot/stage-2-init.sh
parentf6092fe869272327a95d539d78ea8ebe15c34610 (diff)
downloadnixpkgs-5c8ed06fc9dbdf92681101d4fd91c690293ae007.tar
nixpkgs-5c8ed06fc9dbdf92681101d4fd91c690293ae007.tar.gz
nixpkgs-5c8ed06fc9dbdf92681101d4fd91c690293ae007.tar.bz2
nixpkgs-5c8ed06fc9dbdf92681101d4fd91c690293ae007.tar.lz
nixpkgs-5c8ed06fc9dbdf92681101d4fd91c690293ae007.tar.xz
nixpkgs-5c8ed06fc9dbdf92681101d4fd91c690293ae007.tar.zst
nixpkgs-5c8ed06fc9dbdf92681101d4fd91c690293ae007.zip
systemd: allow custom unit folders to be configured with SYSTEMD_UNIT_PATH
Diffstat (limited to 'nixos/modules/system/boot/stage-2-init.sh')
-rw-r--r--nixos/modules/system/boot/stage-2-init.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/stage-2-init.sh b/nixos/modules/system/boot/stage-2-init.sh
index 936077b9df1..50ee0b8841e 100644
--- a/nixos/modules/system/boot/stage-2-init.sh
+++ b/nixos/modules/system/boot/stage-2-init.sh
@@ -167,6 +167,7 @@ exec {logOutFd}>&- {logErrFd}>&-
 
 # Start systemd.
 echo "starting systemd..."
+
 PATH=/run/current-system/systemd/lib/systemd:@fsPackagesPath@ \
-    LOCALE_ARCHIVE=/run/current-system/sw/lib/locale/locale-archive \
+    LOCALE_ARCHIVE=/run/current-system/sw/lib/locale/locale-archive @systemdUnitPathEnvVar@ \
     exec @systemdExecutable@