about summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2018-04-22 15:21:07 +0100
committerGitHub <noreply@github.com>2018-04-22 15:21:07 +0100
commitfecda3498beec72edc15ca2ff475ec4644dba6da (patch)
tree3c1d5016e303ca1f4572200e0f3f9d7ff48eb8f4 /nixos/modules/system
parent9cd5a1ea9a93e8c646946506e6f707f51fe20613 (diff)
parent87cbb862148fac257c991949f6cebd9ce6c51a2a (diff)
downloadnixlib-fecda3498beec72edc15ca2ff475ec4644dba6da.tar
nixlib-fecda3498beec72edc15ca2ff475ec4644dba6da.tar.gz
nixlib-fecda3498beec72edc15ca2ff475ec4644dba6da.tar.bz2
nixlib-fecda3498beec72edc15ca2ff475ec4644dba6da.tar.lz
nixlib-fecda3498beec72edc15ca2ff475ec4644dba6da.tar.xz
nixlib-fecda3498beec72edc15ca2ff475ec4644dba6da.tar.zst
nixlib-fecda3498beec72edc15ca2ff475ec4644dba6da.zip
Merge pull request #27117 from cjxgm/fix-nspawn-missing-suffix
systemd.nspawn: fix missing suffix
Diffstat (limited to 'nixos/modules/system')
-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 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 [] [];