summary refs log tree commit diff stats
path: root/modules/ssh.nix
blob: a23dacd43cff26513d5d3f3317f48f6e7349d45c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
{ config, libs, pkgs, ... }:
{

  environment.systemPackages = [ pkgs.openssh ];

  services.openssh = {
    enable = true;
    settings.PasswordAuthentication = false;
  };
  networking.firewall.allowedTCPPorts = [ 22 ];

}