git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #27117 from cjxgm/fix-nspawn-missing-suffix

systemd.nspawn: fix missing suffix

commitfecda3498beec72edc15ca2ff475ec4644dba6da authorJörg Thalheim <Mic92@users.noreply.github.com> dateSun 22 Apr 2018, 15:21 (9 years ago) parent9cd5a1e87cbb86
1 file changed+1−1
nixos/modules/system/boot/systemd-nspawn.nix+1−1
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 [] [];