Inventory: fix options

This commit is contained in:
Johannes Kirschbauer
2024-07-17 10:55:46 +02:00
parent e236dba1c9
commit bc520df9ff
5 changed files with 10 additions and 10 deletions

View File

@@ -148,8 +148,8 @@ let
(lib.optionalAttrs (machineConfig.system or null != null) {
config.nixpkgs.hostPlatform = machineConfig.system;
})
(lib.optionalAttrs (machineConfig.deploymentInfo.targetHost or null != null) {
config.clan.core.networking.targetHost = machineConfig.deploymentInfo.targetHost;
(lib.optionalAttrs (machineConfig.deploy.targetHost or null != null) {
config.clan.core.networking.targetHost = machineConfig.deploy.targetHost;
})
]
) inventory.machines or { };

View File

@@ -49,7 +49,7 @@ in
default = null;
type = types.nullOr types.str;
};
deploymentInfo = lib.mkOption {
deploy = lib.mkOption {
default = { };
type = types.submodule {
options = {