aboutsummaryrefslogblamecommitdiff
path: root/profiles/server.nix
blob: 731ebe8d81a1863b11a22de67fbda6fd06dd4656 (plain) (tree)
1
2
3
4
5
6
7
8
9



                           
                   
    
 

                                                





                                                                      







                                               
 
{ pkgs, config, lib, ... }:
{
  imports = [
    ./default.nix
    ./tailscale.nix
  ];

  powerManagement.cpuFreqGovernor = "schedutil";

  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 ];
}