commit 86d9a9838db554ddc10a61645fda1a95ab05215d parent 3d9f2dd7bc188113462dae00f6c502cc4f3ced18 Author: vin <vin@vineetk.net> Date: Sun, 2 Mar 2025 02:39:40 -0500 saklas: allow root ssh via key Diffstat:
| M | hosts/saklas/default.nix | | | 8 | ++++++-- |
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/hosts/saklas/default.nix b/hosts/saklas/default.nix @@ -30,7 +30,11 @@ # enable flakes and nix cli nix.settings.experimental-features = [ "nix-command" "flakes" ]; - # Define a user account. + # user accounts + users.users.root.openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEvM0xCLziR+ZT/SYE1aZM6dklbw4fEC17TWqbADIZRH kou@demiurge" + ]; + users.users.vin = { isNormalUser = true; @@ -147,7 +151,7 @@ settings = { KbdInteractiveAuthentication = false; PasswordAuthentication = false; - PermitRootLogin = "no"; + PermitRootLogin = "prohibit-password"; X11Forwarding = true; }; };