mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
config: fix image format module condition
This commit is contained in:
parent
9a07eedb14
commit
9a0079a7fc
@ -342,7 +342,10 @@
|
|||||||
# modules.
|
# modules.
|
||||||
networking.hostName = lib.mkOverride 2000 host';
|
networking.hostName = lib.mkOverride 2000 host';
|
||||||
})
|
})
|
||||||
(lib'.optionalAttrs (images ? host') inputs.nixos-generators.nixosModules.${images.${host'}.format})
|
(lib'.optionalAttrs (lib'.hasAttr host' images)
|
||||||
|
(let
|
||||||
|
imageFormat = images.${host'}.format;
|
||||||
|
in inputs.nixos-generators.nixosModules.${imageFormat}))
|
||||||
hostSharedConfig
|
hostSharedConfig
|
||||||
path
|
path
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user