aboutsummaryrefslogtreecommitdiff
path: root/modules/network/ssh.nix
blob: f5564bdbbc0ea08ce0aa90b1457c027aa557988e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ lib, ... }:
let
  settings = import ../../settings.nix { inherit lib; };
in
{
  services.sshd.enable = true;

  # Auth
  users.users.bacchus.openssh.authorizedKeys.keys = settings.ssh.authorizedKeys;
  services.openssh.settings = {
    PermitRootLogin = "no";
    PasswordAuthentication = false;
    ChallengeResponseAuthentication = false;
  };
}