summaryrefslogtreecommitdiff
path: root/features/system/services/extra/ssh.nix
blob: d1cee260e94eeda8c32db57914c6bdaff368137d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ config, lib, ... }: let
  cfg = config.features.services.extra.ssh;
in {
  options.features.services.extra.ssh.enable = lib.mkEnableOption "ssh";
  config = lib.mkIf cfg.enable {
    services.openssh = {
      enable = true;
      settings = {
        PermitRootLogin = "no";
        PasswordAuthentication = false;
      };
    };
  };
}