aboutsummaryrefslogtreecommitdiff
path: root/modules/services/nixos/ssh.nix
blob: 6db41bf46ae6787c482cdad251ca6fccaac4cf93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  pkgs,
  config,
  lib,
  ...
}: let
  cfg = config.collinux.services.networking.sshd;
in
  lib.mkIf cfg.enable {
    services.openssh = {
      enable = true;
      settings = {
        PermitRootLogin = "no";
        PasswordAuthentication = false;
      };
    };
  }