about summary refs log tree commit diff
path: root/nixos/modules/system/boot
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2019-12-21 17:07:38 +0100
committerMaximilian Bosch <maximilian@mbosch.me>2019-12-21 17:19:26 +0100
commit77d8988b7b6374b0cc0aaa2f16d68c4b2d81a55f (patch)
tree8d99dd4997287498446365cdc8d13d8a23243100 /nixos/modules/system/boot
parente36af0f32ade956000b6d6f3f283a3a6166265e9 (diff)
downloadnixlib-77d8988b7b6374b0cc0aaa2f16d68c4b2d81a55f.tar
nixlib-77d8988b7b6374b0cc0aaa2f16d68c4b2d81a55f.tar.gz
nixlib-77d8988b7b6374b0cc0aaa2f16d68c4b2d81a55f.tar.bz2
nixlib-77d8988b7b6374b0cc0aaa2f16d68c4b2d81a55f.tar.lz
nixlib-77d8988b7b6374b0cc0aaa2f16d68c4b2d81a55f.tar.xz
nixlib-77d8988b7b6374b0cc0aaa2f16d68c4b2d81a55f.tar.zst
nixlib-77d8988b7b6374b0cc0aaa2f16d68c4b2d81a55f.zip
nixos/systemd-nspawn: use `config.systemd.package`
When using a modified systemd-package (e.g. to test a patch), it's
recommended to use the `systemd.package`-option to avoid rebuilding all packages
that somehow depend on systemd.

With this change, the modified package is also used by `systemd-nspawn@`
units.
Diffstat (limited to 'nixos/modules/system/boot')
-rw-r--r--nixos/modules/system/boot/systemd-nspawn.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/systemd-nspawn.nix b/nixos/modules/system/boot/systemd-nspawn.nix
index 3ddd45b13482..1e2435e36f0c 100644
--- a/nixos/modules/system/boot/systemd-nspawn.nix
+++ b/nixos/modules/system/boot/systemd-nspawn.nix
@@ -126,7 +126,7 @@ in {
           systemd.services."systemd-nspawn@".serviceConfig.ExecStart = [ 
             ""  # deliberately empty. signals systemd to override the ExecStart
             # Only difference between upstream is that we do not pass the -U flag
-            "${pkgs.systemd}/bin/systemd-nspawn --quiet --keep-unit --boot --link-journal=try-guest --network-veth --settings=override --machine=%i"
+            "${config.systemd.package}/bin/systemd-nspawn --quiet --keep-unit --boot --link-journal=try-guest --network-veth --settings=override --machine=%i"
           ];
         }
       ];