about summary refs log tree commit diff
path: root/hosts/tahoe/hardware-configuration.nix
blob: 64b1dfc786821bd0b52013d74348e6931954bd68 (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
66
67
68
69
70
# Do not modify this file!  It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations.  Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:

{
  imports =
    [ (modulesPath + "/installer/scan/not-detected.nix")
    ];

  boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
  boot.initrd.kernelModules = [ ];
  boot.kernelModules = [ "kvm-amd" ];
  boot.extraModulePackages = [ ];

  fileSystems."/" =
    { device = "/dev/disk/by-uuid/0ac21391-139e-4fc8-997c-082abe1a828d";
      fsType = "btrfs";
      options = [ "subvol=nixos" ];
    };

  boot.initrd.luks.devices."system".device = "/dev/disk/by-uuid/52cf8e9b-3b61-4d4a-af07-8939ce4688e9";

  fileSystems."/home" =
    { device = "/dev/disk/by-uuid/0ac21391-139e-4fc8-997c-082abe1a828d";
      fsType = "btrfs";
      options = [ "subvol=home" ];
    };

  fileSystems."/.snapshots" =
    { device = "/dev/disk/by-uuid/0ac21391-139e-4fc8-997c-082abe1a828d";
      fsType = "btrfs";
      options = [ "subvol=snapshots" ];
    };

  fileSystems."/boot" =
    { device = "/dev/disk/by-uuid/73CA-2941";
      fsType = "vfat";
    };

  fileSystems."/data/media" =
    { device = "/dev/disk/by-uuid/4058be93-d37b-4d1e-93b2-9b5a2380fb74";
      fsType = "btrfs";
      options = [ "subvol=media" ];
    };

  boot.initrd.luks.devices."raid-fast".device = "/dev/disk/by-uuid/6faff2ec-429a-4d39-8b22-ac5e31780567";

  fileSystems."/data/containers" =
    { device = "/dev/disk/by-uuid/4058be93-d37b-4d1e-93b2-9b5a2380fb74";
      fsType = "btrfs";
      options = [ "subvol=containers" ];
    };

  fileSystems."/data/backups" =
    { device = "/dev/disk/by-uuid/0bd9fbf4-e3d7-4e69-a21b-57d804a8a454";
      fsType = "btrfs";
      options = [ "subvol=backups" ];
    };

  boot.initrd.luks.devices."raid-slow".device = "/dev/disk/by-uuid/aa8c3bae-d39c-44bd-a14b-e5f5d610a57d";

  swapDevices =
    [ { device = "/dev/disk/by-uuid/f39642e3-d506-418d-93c3-482f1376b7f0"; }
    ];

  hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
  # high-resolution display
  hardware.video.hidpi.enable = lib.mkDefault true;
}