This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
AsaJS/modules/services/openssh.nix
2026-04-14 01:15:18 +07:00

20 lines
491 B
Nix

{...}: {
services.openssh = {
enable = true;
ports = [15523];
authorizedKeysInHomedir = true;
authorizedKeysFiles = ["/home/asakiyuki/.ssh/authorized_keys"];
settings = {
AllowUsers = [
"asakiyuki"
"junko"
];
PasswordAuthentication = true;
KbdInteractiveAuthentication = false;
AllowAgentForwarding = false;
AllowStreamLocalForwarding = false;
X11Forwarding = false;
PermitRootLogin = "no";
};
};
}