diff --git a/lib/default.nix b/lib/default.nix index 7947fed..74b426f 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -1,6 +1,8 @@ -{ lib, ... }: +_: let + inherit ((import sources.nixpkgs { })) lib; + sources = import ../npins; in diff --git a/machines/compute01/secrets/secrets.nix b/machines/compute01/secrets/secrets.nix index 2ee797d..b7de844 100644 --- a/machines/compute01/secrets/secrets.nix +++ b/machines/compute01/secrets/secrets.nix @@ -1,6 +1,6 @@ let - lib = import ../../../lib { inherit (import { }) lib; }; - publicKeys = lib.getNodeKeys "compute01"; + lib = import ../../../lib { }; + publicKeys = lib.getNodeKeys "web01"; in lib.setDefault { inherit publicKeys; } [ diff --git a/machines/storage01/secrets/secrets.nix b/machines/storage01/secrets/secrets.nix index 17c20cd..b7de844 100644 --- a/machines/storage01/secrets/secrets.nix +++ b/machines/storage01/secrets/secrets.nix @@ -1,6 +1,6 @@ let - lib = import ../../../lib { inherit (import { }) lib; }; - publicKeys = lib.getNodeKeys "storage01"; + lib = import ../../../lib { }; + publicKeys = lib.getNodeKeys "web01"; in lib.setDefault { inherit publicKeys; } [ diff --git a/machines/web01/secrets/secrets.nix b/machines/web01/secrets/secrets.nix index 7fa74f7..384b505 100644 --- a/machines/web01/secrets/secrets.nix +++ b/machines/web01/secrets/secrets.nix @@ -1,5 +1,5 @@ let - lib = import ../../../lib { inherit (import { }) lib; }; + lib = import ../../../lib { }; publicKeys = lib.getNodeKeys "web01"; in