Initial commit
This commit is contained in:
16
modules/openssh.nix
Normal file
16
modules/openssh.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ lib
|
||||
, pkgs
|
||||
, openssh-port ? 22
|
||||
, ...
|
||||
}:
|
||||
|
||||
{
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
ports = [ openssh-port ];
|
||||
settings = {
|
||||
PermitRootLogin = "no";
|
||||
PasswordAuthentication = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user