3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #27117 from cjxgm/fix-nspawn-missing-suffix

systemd.nspawn: fix missing suffix
This commit is contained in:
Jörg Thalheim 2018-04-22 15:21:07 +01:00 committed by GitHub
commit fecda3498b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 [] [];