Move common nix code one level up.
This commit is contained in:
14
common/sshd.nix
Normal file
14
common/sshd.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
allowSFTP = true;
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
KbdInteractiveAuthentication = false;
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ 22 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user