config: update the image output extra modules

This commit is contained in:
Gabriel Arazas 2023-06-23 11:47:06 +08:00
parent c81038e609
commit 4e428bf8e4
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -353,7 +353,12 @@
format = metadata.format or "iso";
extraModules = [
({ lib, ... }: {
networking.hostName = lib.mkOverride 2000 host;
config = lib.mkMerge [
{ networking.hostName = metadata.hostname or host; }
(lib.mkIf (metadata ? domain)
{ networking.domain = metadata.domain; })
];
})
hostSharedConfig
./hosts/${host}