summaryrefslogtreecommitdiffstats
path: root/tv/1systems/ru/config.nix
blob: 0fc62167ecdd8997ee1e2468eee04a151e1fb8d0 (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
with import ./lib;
{ config, ... }: {
  imports = [
    ../..
    ../../2configs/hw/winmax2.nix
    ../../2configs/retiolum.nix
    ../../2configs/wiregrill.nix
  ];

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

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

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

  system.stateVersion = "22.11";
}