From bcbe47f33ec797fb88e2f67b384f7f346a9a60f3 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Tue, 8 Apr 2025 11:45:53 +0200 Subject: [PATCH] feat: adds phone ssh key to `authorizedKeys` list --- modules/core/sshd.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/core/sshd.nix b/modules/core/sshd.nix index 2f7f332..bd043d6 100644 --- a/modules/core/sshd.nix +++ b/modules/core/sshd.nix @@ -1,8 +1,8 @@ -{ lib, ... }: +{ lib, ... }: { services.openssh = { enable = true; - ports = [22]; + ports = [ 22 ]; settings = { PasswordAuthentication = lib.mkDefault false; AllowUsers = null; @@ -11,5 +11,8 @@ }; }; - users.users.liv.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGXi00z/rxVrWLKgYr+tWIsbHsSQO75hUMSTThNm5wUw liv@lila" ]; + users.users.liv.openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGXi00z/rxVrWLKgYr+tWIsbHsSQO75hUMSTThNm5wUw liv@sakura" # main laptop + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ2nsQHyWnrmuQway0ehoMUcYYfhD8Ph/vpD0Tzip1b1 liv@meow" # main phone + ]; }