all repos

dotfiles @ 1e32754

i use rach linux btw

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

1
{ pkgs, ... }:
2
{
3
  imports = [
4
    ./disko-config.nix
5
    ./hardware-configuration.nix
6
  ];
7
8
  system.stateVersion = "25.11";
9
10
  swapDevices = [
11
    {
12
      device = "/swapfile";
13
      size = 2048; # MB
14
    }
15
  ];
16
17
  boot.loader.grub = {
18
    efiSupport = true;
19
    efiInstallAsRemovable = true;
20
  };
21
22
  time.timeZone = "Europe/Kyiv";
23
  i18n.defaultLocale = "en_US.UTF-8";
24
25
  networking = {
26
    hostName = "vps";
27
    interfaces = { };
28
    firewall = {
29
      enable = true;
30
      allowedTCPPorts = [
31
        80
32
        443
33
        2222
34
      ];
35
    };
36
  };
37
38
  age.identityPaths = [ "/keys.txt" ];
39
40
  services = {
41
    caddy = {
42
      enable = true;
43
      package = pkgs.caddy.withPlugins {
44
        plugins = [ "github.com/mholt/caddy-l4@v0.0.0-20260116154418-93f52b6a03ba" ];
45
        hash = "sha256-s8D9p8k/Gote8s4fk0pv35R7aIwRi5ze7gbBHj+Fm8U=";
46
      };
47
    };
48
    openssh = {
49
      enable = true;
50
      ports = [ 2222 ];
51
      settings = {
52
        PasswordAuthentication = false;
53
        PermitRootLogin = "no";
54
      };
55
    };
56
  };
57
58
  nix = {
59
    gc = {
60
      automatic = true;
61
      dates = "weekly";
62
      options = "--delete-older-than 30d";
63
    };
64
    settings = {
65
      auto-optimise-store = true;
66
      experimental-features = [
67
        "nix-command"
68
        "flakes"
69
      ];
70
    };
71
  };
72
73
  environment.systemPackages = with pkgs; [
74
    neovim
75
    git
76
    htop
77
  ];
78
}