about summary refs log tree commit diff
path: root/machines/aszlig/tishtushi.nix
blob: 78f807dd77cbb91d256fbe6c6d981f8c9e3cd5e1 (plain) (blame)
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
59
60
61
62
63
64
65
{ pkgs, lib, ... }:

{
  vuizvui.user.aszlig.profiles.workstation.enable = true;

  vuizvui.system.kernel.bfq.enable = true;

  boot.kernelPackages = pkgs.linuxPackages_latest;

  boot.loader = {
    grub.device = "/dev/disk/by-id/ata-Hitachi_HTS543232A7A384_E2P31243FGB6PJ";
    timeout = 1;
  };

  boot.initrd = {
    luks.devices = {
      "00vault" = {
        device = "/dev/disk/by-uuid/812f19f1-9096-4367-b2e4-0c9537c52a67";
      };
      tishtushi-swap = {
        device = "/dev/disk/by-uuid/2934df87-5fda-4b2e-9f3b-c4c96f571407";
        keyFile = "/dev/mapper/00vault";
      };
      tishtushi-root = {
        device = "/dev/disk/by-uuid/cf65f144-9205-40a5-a239-b660695a6740";
        keyFile = "/dev/mapper/00vault";
      };
    };
    postDeviceCommands = lib.mkAfter ''
      cryptsetup luksClose /dev/mapper/00vault
    '';
  };

  hardware.cpu.intel.updateMicrocode = true;

  networking.hostName = "tishtushi";
  networking.wireless.enable = lib.mkForce true;
  networking.interfaces.wlp2s0.useDHCP = true;

  fileSystems."/boot" = {
    device = "/dev/disk/by-uuid/763a7117-3dbf-4e80-9e63-c7039477ef3d";
    fsType = "ext4";
  };

  fileSystems."/" = {
    device = "/dev/mapper/tishtushi-root";
    fsType = "btrfs";
    options = [ "space_cache" "compress=zstd" "noatime" ];
  };

  swapDevices = lib.singleton {
    device = "/dev/mapper/tishtushi-swap";
  };

  services.tlp.enable = true;

  services.xserver.videoDrivers = [ "intel" ];
  services.xserver.synaptics.enable = true;
  services.xserver.synaptics.tapButtons = true;
  services.xserver.synaptics.twoFingerScroll = true;
  services.xserver.synaptics.vertEdgeScroll = false;
  services.xserver.synaptics.accelFactor = "0.1";

  nix.maxJobs = 4;
}