Files
cyper-nix/nixos/ssh.nix

15 lines
261 B
Nix

_: {
services.openssh = {
enable = true;
openFirewall = true;
settings = {
PasswordAuthentication = false;
PermitRootLogin = "no";
};
authorizedKeys.keyFiles = [ ../secrets/ssh-key ];
};
programs.ssh.startAgent = true;
}