systemd.nspawn: fix missing suffix
Fix files placed in `/etc/systemd/nspawn/` missing `.nspawn` suffix
This commit is contained in:
parent
51c481bdcc
commit
87cbb86214
@ -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 New Issue
Block a user