diff options
| author | seth <[email protected]> | 2023-08-20 20:42:02 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-08-20 20:42:02 -0400 |
| commit | 355706c4a0c0d66bd9e6a8e93f2b6079fc9542a3 (patch) | |
| tree | 180bfa1ba8574f42913f373125b377198cae035b /parts/deploy.nix | |
| parent | a35d23b98a3e4b50a8b5f888a9f13381f14b3323 (diff) | |
parts/lib/mkDeployNodes: use mapAttrs
Diffstat (limited to 'parts/deploy.nix')
| -rw-r--r-- | parts/deploy.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/parts/deploy.nix b/parts/deploy.nix index cce2b00..dbb1cc3 100644 --- a/parts/deploy.nix +++ b/parts/deploy.nix @@ -1,9 +1,15 @@ -{self, ...}: let +{ + self, + lib, + ... +}: let targets = ["atlas" "p-body"]; + + targets' = lib.filterAttrs (n: _: builtins.elem n targets) self.nixosConfigurations; in { flake.deploy = { remoteBuild = true; fastConnection = true; - nodes = self.lib.utils.mkDeployNodes targets; + nodes = self.lib.utils.mkDeployNodes targets'; }; } |
