all repos

dotfiles @ 30fafc46069296de66cabcf13f2215f651dcc06d

i use rach linux btw

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

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