summaryrefslogtreecommitdiff
path: root/hosts/demiurge/hardware.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/demiurge/hardware.nix')
-rw-r--r--hosts/demiurge/hardware.nix97
1 files changed, 57 insertions, 40 deletions
diff --git a/hosts/demiurge/hardware.nix b/hosts/demiurge/hardware.nix
index b075bb4..21d7ab3 100644
--- a/hosts/demiurge/hardware.nix
+++ b/hosts/demiurge/hardware.nix
@@ -1,53 +1,70 @@
1# Do not modify this file! It was generated by ‘nixos-generate-config’ 1# Do not modify this file! It was generated by ‘nixos-generate-config’
2# and may be overwritten by future invocations. Please make changes 2# and may be overwritten by future invocations. Please make changes
3# to /etc/nixos/configuration.nix instead. 3# to /etc/nixos/configuration.nix instead.
4{ config, lib, pkgs, modulesPath, ... }: 4{
5 config,
6 lib,
7 pkgs,
8 modulesPath,
9 ...
10}:
5 11
6{ 12{
7 imports = 13 imports = [
8 [ (modulesPath + "/installer/scan/not-detected.nix") 14 (modulesPath + "/installer/scan/not-detected.nix")
9 ]; 15 ];
10 16
11 boot.initrd.availableKernelModules = [ "mpt3sas" "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; 17 boot.initrd.availableKernelModules = [
18 "mpt3sas"
19 "nvme"
20 "xhci_pci"
21 "ahci"
22 "usbhid"
23 "usb_storage"
24 "sd_mod"
25 ];
12 boot.initrd.kernelModules = [ "amdgpu" ]; 26 boot.initrd.kernelModules = [ "amdgpu" ];
13 boot.kernelModules = [ "kvm-amd" ]; 27 boot.kernelModules = [ "kvm-amd" ];
14 boot.extraModulePackages = [ ]; 28 boot.extraModulePackages = [ ];
15 29
16 fileSystems."/" = 30 fileSystems."/" = {
17 { device = "zroot/root"; 31 device = "zroot/root";
18 fsType = "zfs"; 32 fsType = "zfs";
19 options = [ "zfsutil" ]; 33 options = [ "zfsutil" ];
20 }; 34 };
21 35
22 fileSystems."/nix" = 36 fileSystems."/nix" = {
23 { device = "zroot/nix"; 37 device = "zroot/nix";
24 fsType = "zfs"; 38 fsType = "zfs";
25 options = [ "zfsutil" ]; 39 options = [ "zfsutil" ];
26 }; 40 };
27 41
28 fileSystems."/var" = 42 fileSystems."/var" = {
29 { device = "zroot/var"; 43 device = "zroot/var";
30 fsType = "zfs"; 44 fsType = "zfs";
31 options = [ "zfsutil" ]; 45 options = [ "zfsutil" ];
32 }; 46 };
33 47
34 fileSystems."/home" = 48 fileSystems."/home" = {
35 { device = "zroot/home"; 49 device = "zroot/home";
36 fsType = "zfs"; 50 fsType = "zfs";
37 options = [ "zfsutil" ]; 51 options = [ "zfsutil" ];
38 }; 52 };
39 53
40 fileSystems."/data" = 54 fileSystems."/data" = {
41 { device = "nvme_warm"; 55 device = "nvme_warm";
42 fsType = "zfs"; 56 fsType = "zfs";
43 options = [ "zfsutil" ]; 57 options = [ "zfsutil" ];
44 }; 58 };
45 59
46 fileSystems."/boot" = 60 fileSystems."/boot" = {
47 { device = "/dev/disk/by-uuid/1C01-EE5C"; 61 device = "/dev/disk/by-uuid/1C01-EE5C";
48 fsType = "vfat"; 62 fsType = "vfat";
49 options = [ "fmask=0022" "dmask=0022" ]; 63 options = [
50 }; 64 "fmask=0022"
65 "dmask=0022"
66 ];
67 };
51 68
52 swapDevices = [ ]; 69 swapDevices = [ ];
53 70