reNixos/s0melapt0p-nix/services/openssh.nix
s0me1newithhand7s 2939b08891 big staging update
Signed-off-by: s0me1newithhand7s <git+me@hand7s.org>
2025-12-29 16:42:07 +03:00

22 lines
380 B
Nix

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