diff --git a/shared/core/ssh.nix b/shared/core/ssh.nix index 61bb537..0991bdc 100644 --- a/shared/core/ssh.nix +++ b/shared/core/ssh.nix @@ -8,7 +8,12 @@ }; users.users."riley" = { + # Add ssh client packages = [ pkgs.openssh ]; + # Authorize `riley` user on other machines to SSH into this machine. + openssh.authorizedKeys.keyFiles = + let userKey = sys: ../../system/${sys}/keys/riley.pub; + in map userKey [ "dev-lt-63" "strawberry" "lime" ]; }; } \ No newline at end of file