Sshd : Migrate to nix.

This commit is contained in:
Dmitry Voronin 2024-01-24 22:03:19 +03:00
parent f84c538758
commit 841fad2ad0
2 changed files with 31 additions and 1 deletions

View file

@ -1,5 +1,34 @@
{ ... }:
{
services.openssh.enable = true;
services.openssh = {
enable = true;
allowSFTP = true;
ports = [ 22143 ];
listenAddresses = [
{
addr = "0.0.0.0";
port = 22143;
}
];
settings = {
AllowUsers = [ "root" ];
PermitRootLogin = "yes";
LoginGraceTime = "1m";
StrictModes = false;
MaxAuthTries = 1;
MaxSessions = 10;
UsePAM = true;
UseDns = false;
PasswordAuthentication = true;
KbdInteractiveAuthentication = true;
PermitEmptyPasswords = false;
PubkeyAuthentication = false;
HostbasedAuthentication = false;
KerberosAuthentication = false;
GSSAPIAuthentication = false;
};
};
}

View file

@ -10,6 +10,7 @@
../Voronind.nix
../Flatpak.nix
../DockerRootless.nix
../Sshd.nix
];
# Network.