diff --git a/users/_common/home_manager/ssh.nix b/users/_common/home_manager/ssh.nix index 9e62b49..d2d00ad 100644 --- a/users/_common/home_manager/ssh.nix +++ b/users/_common/home_manager/ssh.nix @@ -19,7 +19,7 @@ "h002" = { identityFile = age.secrets.nix2h002.path; hostname = "10.20.40.12"; - user = "root"; + user = "luser"; }; "t" = { identityFile = age.secrets.nix2t.path; diff --git a/users/luser/by_hosts/nix_modules/ssh_authorized.nix b/users/luser/by_hosts/nix_modules/ssh_authorized.nix new file mode 100644 index 0000000..e707e29 --- /dev/null +++ b/users/luser/by_hosts/nix_modules/ssh_authorized.nix @@ -0,0 +1,6 @@ +{ settings, ... }: +{ + users.user.${settings.user.username}.openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJie9OPheWn/EZWfXJSZ3S0DnISqI3ToCmOqhX/Tkwby nix2h002" + ]; +} diff --git a/users/luser/by_hosts/readme.md b/users/luser/by_hosts/readme.md new file mode 100644 index 0000000..e69de29