reNixos/s0mePC-nix/services/openssh.nix
2025-04-27 12:47:02 +03:00

22 lines
487 B
Nix

{config, ...}: {
services = {
openssh = {
enable = true;
allowSFTP = true;
openFirewall = true;
ports = [
49560
];
settings = {
PrintMotd = false;
PermitRootLogin = "no";
PasswordAuthentication = false;
};
authorizedKeysFiles = [
config.sops.secrets.sshKey.path
];
};
};
}