aboutsummaryrefslogtreecommitdiff
path: root/modules/services/ssh/default.nix
blob: dd25795481eb223600900720073d8137f7970f2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ lib, ... }:
let
  ports = [ 2222 ];
in
{
  services.openssh = {
    enable = lib.mkDefault true;
    ports = ports;
    openFirewall = true;
    startWhenNeeded = true;
    settings = {
      AllowUsers = [ "tdback" ];
      PermitRootLogin = "no";
      PasswordAuthentication = lib.mkDefault false;
    };
  };
}