diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/flake.nix b/flake.nix index 4a8b76f..7b9727e 100644 --- a/flake.nix +++ b/flake.nix @@ -43,10 +43,10 @@ }; }; - mkIdentities = ms: current: - lib.genAttrs (lib.catAttrs "name" ms) (m: current.name == m); + in machines: map (m: mkMachine m) machines; - in machines: map (m: (mkMachine m) // (mkIdentities machines m)) machines; + mkMachineIdentities = ms: current: + lib.genAttrs (lib.catAttrs "name" ms) (m: current.name == m); machines = with systems; mkMachines [ { name = "corsac"; system = x86; tailscale.ip = "100.64.100.100"; } @@ -74,7 +74,8 @@ inherit (machine) system; specialArgs = inputs // (packageSetsForSystem machine.system) // { - me = machine; + inherit machines; + me = machine // { is = mkMachineIdentities machines machine; }; keys = import ./secrets/keys.nix; util = import ./util.nix { inherit lib; }; }; |
