generation 498 25.11.20250714.62e0f05

This commit is contained in:
2025-08-21 18:37:10 -04:00
parent 2d4e64d04f
commit 56336e0b7e
5 changed files with 111 additions and 3 deletions

19
hosts/server-gpu/ssh.nix Normal file
View File

@@ -0,0 +1,19 @@
{
config,
pkgs,
...
}: {
services.openssh.enable = true;
# Disable password login for security
services.openssh.settings.PasswordAuthentication = false;
services.openssh.settings.PermitRootLogin = "no";
# Add your authorized key for a specific user
users.users.yourusername = {
isNormalUser = true;
openssh.authorizedKeys.keys = [
config.age.secrets.ssh-pub
];
};
}