diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2018-04-22 15:21:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-22 15:21:07 +0100 |
commit | fecda3498beec72edc15ca2ff475ec4644dba6da (patch) | |
tree | 3c1d5016e303ca1f4572200e0f3f9d7ff48eb8f4 /nixos | |
parent | 9cd5a1ea9a93e8c646946506e6f707f51fe20613 (diff) | |
parent | 87cbb862148fac257c991949f6cebd9ce6c51a2a (diff) |
Merge pull request #27117 from cjxgm/fix-nspawn-missing-suffix
systemd.nspawn: fix missing suffix
Diffstat (limited to 'nixos')
-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 8fa9f8b795e5..64b3b8b584e3 100644 --- a/nixos/modules/system/boot/systemd-nspawn.nix +++ b/nixos/modules/system/boot/systemd-nspawn.nix @@ -110,7 +110,7 @@ in { config = let - units = mapAttrs' (n: v: nameValuePair "${n}.nspawn" (instanceToUnit n v)) cfg; + units = mapAttrs' (n: v: let nspawnFile = "${n}.nspawn"; in nameValuePair nspawnFile (instanceToUnit nspawnFile v)) cfg; in mkIf (cfg != {}) { environment.etc."systemd/nspawn".source = generateUnits "nspawn" units [] []; |