{deploy,effects}: filter container hosts
This commit is contained in:
parent
1cfe7951af
commit
f4f360d772
1 changed files with 6 additions and 2 deletions
|
@ -50,6 +50,10 @@
|
||||||
|
|
||||||
nixosHosts = lib.attrNames nixosHosts';
|
nixosHosts = lib.attrNames nixosHosts';
|
||||||
|
|
||||||
|
deployableNixosHosts' = lib.filterAttrs (_: host: host ? container -> !host.container) nixosHosts';
|
||||||
|
|
||||||
|
deployableNixosHosts = lib.attrNames deployableNixosHosts';
|
||||||
|
|
||||||
meta = import ./tools/meta.nix;
|
meta = import ./tools/meta.nix;
|
||||||
|
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
|
@ -110,7 +114,7 @@
|
||||||
|
|
||||||
nixosConfigurations = lib.genAttrs nixosHosts mkNixOS;
|
nixosConfigurations = lib.genAttrs nixosHosts mkNixOS;
|
||||||
|
|
||||||
deploy.nodes = mkDeployments nixosHosts {};
|
deploy.nodes = mkDeployments deployableNixosHosts {};
|
||||||
|
|
||||||
apps = forSystems (system: {
|
apps = forSystems (system: {
|
||||||
});
|
});
|
||||||
|
@ -124,6 +128,6 @@
|
||||||
inherit (self) packages;
|
inherit (self) packages;
|
||||||
};
|
};
|
||||||
|
|
||||||
effects = { branch, ... }: mkDeployEffects branch nixosHosts;
|
effects = { branch, ... }: mkDeployEffects branch deployableNixosHosts;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue