aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/configuration/server/openssh/default.nix
blob: df15b7128b6d3a579badf24ba01852e457b646d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ config, ... }:

{
  services.openssh = {
    enable = true;
    permitRootLogin = "prohibit-password";
    passwordAuthentication = false;

    # Required for root
    extraConfig = ''
      Match Address 127.0.0.1
        PermitRootLogin yes
    '';
  };

  # Also enable mosh because /shrug
  programs.mosh.enable = true;
}