summaryrefslogtreecommitdiffstats
path: root/systems/fu/config.nix
blob: 86590aea1e0379dc6cf66af6ef50e6a44494184b (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
{ config, ... }: {
  imports = [
    ../../configs/hw/framework-13th-gen-intel.nix
    ../../configs/initrd/sshd.nix
    ../../configs/retiolum.nix
    ../../configs/wiregrill.nix

    ../../configs/binary-cache/client.nix
    ../../configs/autotether.nix
    ../../configs/earlyoom.nix
    ../../configs/gitconfig.nix
    ../../configs/man.nix
    ../../configs/networkd.nix
    ../../configs/nginx/public_html.nix
  ];

  boot.binfmt.emulatedSystems = [ "aarch64-linux" ];

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

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

  hrm.nftables.enable = true;

  users.groups.plugdev = {}; # https://github.com/NixOS/nixpkgs/pull/272506

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

  system.stateVersion = "22.11";

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