{deploy,effects}: filter container hosts

This commit is contained in:
Max Headroom 2022-05-28 21:49:16 +02:00
parent 1cfe7951af
commit f4f360d772

View file

@ -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;
}; };
} }