nixos: add ssh key to modules/linux/ssh

This commit is contained in:
Nico 2025-05-03 16:16:01 +10:00
parent 117fa5d57c
commit 14ac9f27c4

View file

@ -14,6 +14,11 @@
}; };
}; };
# add ssh key
users.users.nico.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMNq0xyfsucfXiFnLsUC/rz0FDw8JrPtUdFqmKLL0HBM"
];
# enable ssh in the firewall # enable ssh in the firewall
networking.firewall.allowedTCPPorts = [ 22 ]; networking.firewall.allowedTCPPorts = [ 22 ];