summaryrefslogtreecommitdiffstats
path: root/systems/zoppo/config.nix
blob: c2c14755cfd5f06087f28291b8e5b3ecfd6a695a (plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{ config, pkgs, ... }: {
  imports = [
    ./mbim-reconnect.nix

    ../../configs/hw/tiny5.nix
    ../../configs/bluetooth.nix

    ../../configs/initrd/sshd.nix
    ../../configs/retiolum.nix
    ../../configs/wiregrill.nix

    ../../configs/earlyoom.nix
    ../../configs/networkd.nix
  ];

  boot.kernelPackages = pkgs.linuxPackages_latest;

  boot.initrd.luks.devices.main.device = "/dev/nvme0n1p2";
  boot.loader.efi.canTouchEfiVariables = true;
  boot.loader.systemd-boot.enable = true;

  fileSystems."/" = {
    device = "/dev/mapper/zoppovg0-root";
    fsType = "btrfs";
    options = ["defaults" "noatime" "compress=zstd"];
  };
  fileSystems."/boot" = {
    device = "/dev/nvme0n1p1";
    fsType = "vfat";
  };
  fileSystems."/home" = {
    device = "/dev/mapper/zoppovg0-home";
    fsType = "btrfs";
    options = ["defaults" "noatime" "compress=zstd"];
  };
  fileSystems."/bku" = {
    device = "/dev/mapper/zoppovg0-bku";
    fsType = "btrfs";
    options = ["defaults" "noatime" "compress=zstd"];
  };

  # Keep the interface names zoppo runs with: mbim-reconnect uses
  # wwp0s20f0u5, which kernel names would turn into wwan0.
  networking.usePredictableInterfaceNames = true;
  networking.interfaces.eno1.useDHCP = true;
  hrm.network.interfaces.eno1.medium = "ethernet";

  networking.wireless.enable = false;

  hrm.nftables.enable = true;

  krebs.build.host = config.krebs.hosts.zoppo;

  system.stateVersion = "23.05";

  zramSwap.enable = true;
  zramSwap.swapDevices = 1;
}