From 14ac9f27c4fe06c8dd2040adf013bed8451286ea Mon Sep 17 00:00:00 2001 From: Nico Date: Sat, 3 May 2025 16:16:01 +1000 Subject: [PATCH] nixos: add ssh key to modules/linux/ssh --- modules/linux/ssh.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/linux/ssh.nix b/modules/linux/ssh.nix index 3a8348b..0a83880 100644 --- a/modules/linux/ssh.nix +++ b/modules/linux/ssh.nix @@ -14,6 +14,11 @@ }; }; + # add ssh key + users.users.nico.openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMNq0xyfsucfXiFnLsUC/rz0FDw8JrPtUdFqmKLL0HBM" + ]; + # enable ssh in the firewall networking.firewall.allowedTCPPorts = [ 22 ];