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

  powerManagement.cpuFreqGovernor = "schedutil";

  services.openssh = {
    enable = true;
    settings = {
      PermitRootLogin = "yes";
      PasswordAuthentication = false;
    };
  };

  networking.firewall.allowedTCPPorts = [ 22 ];
}