aboutsummaryrefslogtreecommitdiff
path: root/profiles/server.nix
blob: c4efb863ba0becfa3c275a6d121acc06160b45c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ pkgs, config, lib, ... }:
{
  imports = [
    ./default.nix
    ./tailscale.nix
  ];

  powerManagement.cpuFreqGovernor = "schedutil";

  # see https://www.man7.org/linux/man-pages/man5/loader.conf.5.html
  boot.loader.systemd-boot.consoleMode = "max";

  console = {
    earlySetup = true;
    font = "${pkgs.terminus_font}/share/consolefonts/ter-132n.psf.gz";
    packages = with pkgs; [ terminus_font ];
    keyMap = "us";
  };

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

  networking.firewall.allowedTCPPorts = [ 22 ];
}