about summary refs log tree commit diff
path: root/nixos/alpha/hardware-configuration.nix
blob: 0d0593f60f287d61a17ef4bc584bb6659704ff63 (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
59
60
61
62
63
64
65
66
67
68
69
70
71
{ config, lib, pkgs, ... }:

{
  boot.initrd.availableKernelModules = [ "xhci-pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
  boot.initrd.kernelModules = [ ];
  boot.kernelModules = [ "kvm-amd" "tcp_bbr" ];
  boot.extraModulePackages = [ ];

  hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
  hardware.enableRedistributableFirmware = true;

  fileSystems."/" = {
    device = "rpool/root/nixos";
    fsType = "zfs";
  };

  fileSystems."/boot" = {
    device = "/dev/disk/by-uuid/55B4-0E38";
    fsType = "vfat";
  };

  fileSystems."/nix" = {
    device = "rpool/root/nixos/nix";
    fsType = "zfs";
  };

  fileSystems."/etc" = {
    device = "rpool/root/nixos/etc";
    fsType = "zfs";
  };

  fileSystems."/var" = {
    device = "rpool/root/nixos/var";
    fsType = "zfs";
  };

  fileSystems."/var/lib" = {
    device = "rpool/root/nixos/var/lib";
    fsType = "zfs";
  };

  fileSystems."/var/log" = {
    device = "rpool/root/nixos/var/log";
    fsType = "zfs";
  };

  fileSystems."/var/spool" = {
    device = "rpool/root/nixos/var/spool";
    fsType = "zfs";
  };

  fileSystems."/home" = {
    device = "rpool/home";
    fsType = "zfs";
  };

  fileSystems."/home/zach" = {
    device = "rpool/home/zach";
    fsType = "zfs";
  };

  fileSystems."/data" = {
    device = "/dev/disk/by-uuid/fe7a00a8-0a3c-48de-9d7a-ed7cf172f501";
    fsType = "ext4";
  };

  swapDevices = [ ];

  nix.settings.max-jobs = lib.mkDefault 4;
  powerManagement.cpuFreqGovernor = lib.mkDefault "schedutil";
}