reNixos/ada/services/openssh.nix
s0me1newithhand7s a50ae76a23 ada: upstream
Signed-off-by: s0me1newithhand7s <git+me@hand7s.org>
2026-02-08 22:53:56 +03:00

22 lines
381 B
Nix

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