all repos

dotfiles @ d8d64184be11a366ebe6e0ea77732169ded55fef

i use rach linux btw

dotfiles/nix/hosts/thought/configuration.nix (view raw)

1
{ ... }: {
2
  imports = [
3
    ./disko-config.nix
4
    ./hardware-configuration.nix
5
  ];
6
7
  system.stateVersion = "25.11";
8
9
  boot.loader.grub = {
10
    efiSupport = true;
11
    efiInstallAsRemovable = true;
12
  };
13
14
  swapDevices = [ {
15
   device = "/swapfile";
16
    size = 2048; # MB
17
  } ];
18
19
  time.timeZone = "Europe/Kyiv";
20
  i18n.defaultLocale = "en_US.UTF-8";
21
  networking = {
22
    hostName = "thought";
23
    firewall = {
24
      enable = true;
25
      allowedTCPPorts = [ 80 443 2222 ];
26
    };
27
  };
28
29
  services = {
30
    caddy.enable = true;
31
    openssh = {
32
      enable = true;
33
      ports = [ 2222 ];
34
      settings = {
35
        PasswordAuthentication = false;
36
        PermitRootLogin = "no";
37
      };
38
    };
39
  };
40
}