Extract an openssh mixin
This commit is contained in:
parent
fa3bee371f
commit
791d206764
4 changed files with 15 additions and 6 deletions
14
modules/mixins/openssh.nix
Normal file
14
modules/mixins/openssh.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
|
||||
openFirewall = lib.mkForce true;
|
||||
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
PermitRootLogin = lib.mkForce "no";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue