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