From 122f5a3452661ace85e93ae6c6fb2715e678f411 Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 17 Aug 2023 19:12:06 -0400 Subject: parts/deploy: filterAttrs -> genAttrs --- parts/deploy.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'parts/deploy.nix') diff --git a/parts/deploy.nix b/parts/deploy.nix index 9bd98b2..b3b3766 100644 --- a/parts/deploy.nix +++ b/parts/deploy.nix @@ -3,12 +3,9 @@ lib, ... }: let - systems = ["atlas" "p-body"]; + machines = ["atlas" "p-body"]; - deployedSystems = - lib.filterAttrs - (n: _: builtins.elem n systems) - self.nixosConfigurations; + deployedSystems = lib.genAttrs machines (m: self.nixosConfigurations.${m}); in { flake.deploy = { remoteBuild = true; -- cgit v1.2.3