forked from mirrors/nixpkgs
Merge pull request #27117 from cjxgm/fix-nspawn-missing-suffix
systemd.nspawn: fix missing suffix
This commit is contained in:
commit
fecda3498b
|
@ -110,7 +110,7 @@ in {
|
||||||
|
|
||||||
config =
|
config =
|
||||||
let
|
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 != {}) {
|
in mkIf (cfg != {}) {
|
||||||
|
|
||||||
environment.etc."systemd/nspawn".source = generateUnits "nspawn" units [] [];
|
environment.etc."systemd/nspawn".source = generateUnits "nspawn" units [] [];
|
||||||
|
|
Loading…
Reference in a new issue