Inventory: fix options
This commit is contained in:
@@ -89,7 +89,7 @@ let
|
||||
];
|
||||
inventoryPath = [ "system" ];
|
||||
})
|
||||
# deploymentInfo.targetHost
|
||||
# deploy.targetHost
|
||||
// (clanToInventory config {
|
||||
clanPath = [
|
||||
"clan"
|
||||
@@ -98,7 +98,7 @@ let
|
||||
"targetHost"
|
||||
];
|
||||
inventoryPath = [
|
||||
"deploymentInfo"
|
||||
"deploy"
|
||||
"targetHost"
|
||||
];
|
||||
})
|
||||
|
||||
@@ -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 { };
|
||||
|
||||
@@ -49,7 +49,7 @@ in
|
||||
default = null;
|
||||
type = types.nullOr types.str;
|
||||
};
|
||||
deploymentInfo = lib.mkOption {
|
||||
deploy = lib.mkOption {
|
||||
default = { };
|
||||
type = types.submodule {
|
||||
options = {
|
||||
|
||||
Reference in New Issue
Block a user