about summary refs log tree commit diff
path: root/profiles/server.nix
blob: 5f1ce107e332ce75fecff8500b32a81be9b0c894 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ pkgs, config, lib, ... }:
{
  imports = [
    ./default.nix
    ./tailscale.nix
  ];

  powerManagement.cpuFreqGovernor = "schedutil";

  services.openssh = {
    enable = true;
    permitRootLogin = "yes";
    passwordAuthentication = false;
  };

  networking.firewall.allowedTCPPorts = [ 22 ];
}