systemd.nspawn: fix missing suffix
Fix files placed in `/etc/systemd/nspawn/` missing `.nspawn` suffix
commit87cbb862148fac257c991949f6cebd9ce6c51a2a
authorGiumo X. Clanjor (哆啦比猫/兰威举) <cjxgm@126.com>
dateTue 4 Jul 2017, 21:12 (9 years ago)
parent51c481b
nixos/modules/system/boot/systemd-nspawn.nix+1−1
@@ -110,7 +110,7 @@ in {
110110
111111 config =
112112 let
113− units = mapAttrs' (n: v: nameValuePair "${n}.nspawn" (instanceToUnit n v)) cfg;
113+ units = mapAttrs' (n: v: let nspawnFile = "${n}.nspawn"; in nameValuePair nspawnFile (instanceToUnit nspawnFile v)) cfg;
114114 in mkIf (cfg != {}) {
115115
116116 environment.etc."systemd/nspawn".source = generateUnits "nspawn" units [] [];