diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2019-12-21 17:07:38 +0100 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2019-12-21 17:19:26 +0100 |
commit | 77d8988b7b6374b0cc0aaa2f16d68c4b2d81a55f (patch) | |
tree | 8d99dd4997287498446365cdc8d13d8a23243100 /nixos/modules/system | |
parent | e36af0f32ade956000b6d6f3f283a3a6166265e9 (diff) |
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')
-rw-r--r-- | nixos/modules/system/boot/systemd-nspawn.nix | 2 |
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 3ddd45b134820..1e2435e36f0c1 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" ]; } ]; |