diff --git a/nixos/keys/known_hosts/one.nix b/nixos/keys/known_hosts/one.nix deleted file mode 100644 index 9d9f7fc..0000000 --- a/nixos/keys/known_hosts/one.nix +++ /dev/null @@ -1 +0,0 @@ -"github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl" \ No newline at end of file diff --git a/nixos/keys/known_hosts/one.pub b/nixos/keys/known_hosts/one.pub new file mode 100644 index 0000000..ac7b3de --- /dev/null +++ b/nixos/keys/known_hosts/one.pub @@ -0,0 +1 @@ +github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl \ No newline at end of file diff --git a/nixos/keys/known_hosts/three.nix b/nixos/keys/known_hosts/three.pub similarity index 100% rename from nixos/keys/known_hosts/three.nix rename to nixos/keys/known_hosts/three.pub diff --git a/nixos/keys/known_hosts/two.nix b/nixos/keys/known_hosts/two.pub similarity index 100% rename from nixos/keys/known_hosts/two.nix rename to nixos/keys/known_hosts/two.pub diff --git a/nixos/system/home/shared.nix b/nixos/system/home/shared.nix index e79560a..1ea7e34 100644 --- a/nixos/system/home/shared.nix +++ b/nixos/system/home/shared.nix @@ -32,7 +32,7 @@ dir = builtins.toString ../../keys/known_hosts; files = builtins.attrNames (builtins.readDir dir); - pubKeys = map (file: import (dir + "/" + file)) files; + pubKeys = map (file: builtins.readFile (dir + "/" + file)) files; joinedString = lib.concatStringsSep " " pubKeys; in { imports = [ diff --git a/nixos/system/users.nix b/nixos/system/users.nix index 462ea73..10f47d1 100644 --- a/nixos/system/users.nix +++ b/nixos/system/users.nix @@ -53,11 +53,7 @@ "wheel" "docker" ]; - authorizedKeys = [ - (builtins.readFile ../keys/authorized_keys/macbookpro.pub) - (builtins.readFile ../keys/authorized_keys/macbookpro-intel.pub) - (builtins.readFile ../keys/authorized_keys/monolith.pub) - ]; + authorizedKeys = authorizedKeys; homeConfig = import ./home/ironmagma.nix { username = "ironmagma"; inherit config pkgs nix-index-database lib;