summaryrefslogtreecommitdiffstats
path: root/systems/ru/config.nix
blob: 963a54e5d408189b4c58c1ab3d2a73a165a4208c (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
{ config, ... }: {
  imports = [
    ../../configs/hw/winmax2.nix
    ../../configs/btrfs-scrub.nix
    ../../configs/input/mx-anywhere-3.nix
    ../../configs/networkd.nix
    ../../configs/retiolum.nix
    ../../configs/wiregrill.nix
    ../../configs/x11
  ];

  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;

  enstate.enable = true;

  system.stateVersion = "22.11";

  hrm.alacritty.variant = "hidpi";
  hrm.xresources."*" = {
    "DesktopPagerFloat*renderFont" = "true";
    "DesktopPagerFloat*faceName" = "iosevka tv 2 Semibold";
    "DesktopPagerFloat*faceSize" = "8";
  };
  # master width = master terminal columns * column width / screen width
  systemd.user.services."xmonad@".environment = {
    XMONAD_SCREEN_GAPS = builtins.toJSON [ 0 0 1 0 ];
    XMONAD_MASTER_WIDTH = toString (120 * 12 / 3840.);
    XMONAD_MASTER_DELTA = toString (12 * 12 / 3840.);
  };
}