Sshd : Migrate to nix.
This commit is contained in:
parent
f84c538758
commit
841fad2ad0
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
../Voronind.nix
|
||||
../Flatpak.nix
|
||||
../DockerRootless.nix
|
||||
../Sshd.nix
|
||||
];
|
||||
|
||||
# Network.
|
||||
|
|
Reference in a new issue