From 355706c4a0c0d66bd9e6a8e93f2b6079fc9542a3 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 20 Aug 2023 20:42:02 -0400 Subject: parts/lib/mkDeployNodes: use mapAttrs --- parts/deploy.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'parts/deploy.nix') 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'; }; } -- cgit v1.2.3