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/lib/utils.nix | |
| parent | a35d23b98a3e4b50a8b5f888a9f13381f14b3323 (diff) | |
parts/lib/mkDeployNodes: use mapAttrs
Diffstat (limited to 'parts/lib/utils.nix')
| -rw-r--r-- | parts/lib/utils.nix | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/parts/lib/utils.nix b/parts/lib/utils.nix index e88d651..4473e22 100644 --- a/parts/lib/utils.nix +++ b/parts/lib/utils.nix @@ -1,8 +1,4 @@ -{ - self, - inputs, - ... -}: let +{inputs, ...}: let deployPkgs = pkgs: import pkgs.path { inherit (pkgs) system; @@ -17,14 +13,11 @@ ]; }; in { - mkDeployNodes = hosts: - inputs.nixpkgs.lib.genAttrs hosts (host: let - system = self.nixosConfigurations.${host}; - inherit (system) pkgs; - inherit (deployPkgs pkgs) deploy-rs; - in { - sshUser = "root"; - hostname = system.config.networking.hostName; - profiles.system.path = deploy-rs.lib.activate.nixos system; - }); + mkDeployNodes = builtins.mapAttrs (_: system: let + inherit (deployPkgs system.pkgs) deploy-rs; + in { + sshUser = "root"; + hostname = system.config.networking.hostName; + profiles.system.path = deploy-rs.lib.activate.nixos system; + }); } |
