Initial commit
This commit is contained in:
commit
430194beda
109 changed files with 9066 additions and 0 deletions
16
modules/nixos/openssh/default.nix
Normal file
16
modules/nixos/openssh/default.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkDefault;
|
||||
in
|
||||
{
|
||||
services.openssh = {
|
||||
enable = mkDefault true;
|
||||
ports = mkDefault [ 2299 ];
|
||||
openFirewall = mkDefault true;
|
||||
settings = {
|
||||
PermitRootLogin = mkDefault "no";
|
||||
PasswordAuthentication = mkDefault false;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue