summaryrefslogblamecommitdiff
path: root/components/services/openssh.nix
blob: 66a6499c88da9b64ffb680d31076eb7d1a0cd78c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                               
{lib, config, ...}: {
  options.openssh.enable = lib.mkEnableOption "OpenSSH server";

  config = lib.mkIf config.openssh.enable {
    services.openssh = {
      enable = true;

      settings = {
        PermitRootLogin = "no";
        PasswordAuthentication = false;
        PrintMotd = false;
      };
    };
  };
}