dotfiles/hosts/malachite/hardware-configuration.nix

103 lines
3.3 KiB
Nix
Raw Normal View History

2024-02-25 19:49:15 -08:00
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "vmd" "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
2024-04-05 02:23:27 -07:00
boot.kernelModules = [ "kvm-intel" "vfio-pci" ];
2024-06-05 05:46:08 -07:00
boot.extraModulePackages = lib.attrVals [ "rtl8812au" ] config.boot.kernelPackages;
2024-02-25 19:49:15 -08:00
2024-02-29 16:07:01 -08:00
boot.kernelParams = [
"loglevel=3"
"iommu=pt"
"intel_iommu=on"
];
fileSystems = {
"/" =
{ device = "/dev/disk/by-uuid/8e30bb30-eacf-4d7d-bcec-c2b39982de13";
fsType = "btrfs";
2024-11-03 11:11:06 -08:00
options = [ "subvol=nix" "compress=zstd" ];
2024-02-29 16:07:01 -08:00
};
"/home" = {
device = "/dev/disk/by-uuid/8e30bb30-eacf-4d7d-bcec-c2b39982de13";
2024-02-25 19:49:15 -08:00
fsType = "btrfs";
2024-11-03 11:11:06 -08:00
options = [ "subvol=homes/stitchymain" "compress=zstd" ];
2024-02-25 19:49:15 -08:00
};
2024-02-29 16:07:01 -08:00
"/nix/store" = {
device = "/dev/disk/by-uuid/8e30bb30-eacf-4d7d-bcec-c2b39982de13";
fsType = "btrfs";
2024-11-03 11:11:06 -08:00
options = [ "subvol=store" "noatime" "compress=zstd" ];
2024-02-29 16:07:01 -08:00
};
"/persist" = {
device = "/dev/disk/by-uuid/8e30bb30-eacf-4d7d-bcec-c2b39982de13";
fsType = "btrfs";
2024-11-03 11:11:06 -08:00
options = [ "subvol=@persist" "compress=zstd" ];
2024-02-29 16:07:01 -08:00
};
"/boot" = {
device = "/dev/disk/by-uuid/CB12-5062";
2024-02-25 19:49:15 -08:00
fsType = "vfat";
};
2024-02-29 16:07:01 -08:00
"/home/stitchynyan/Music" = {
device = "/dev/disk/by-uuid/feb8239f-5d09-4184-8e46-52185beaa040";
2024-02-25 19:49:15 -08:00
fsType = "btrfs";
2024-11-03 11:11:06 -08:00
options = [ "subvol=music/stitchtunes" "compress=zstd" "x-systemd.automount" ];
2024-02-29 16:07:01 -08:00
};
"/home/stitchynyan/Pictures" = {
device = "/dev/disk/by-uuid/feb8239f-5d09-4184-8e46-52185beaa040";
fsType = "btrfs";
2024-11-03 11:11:06 -08:00
options = [ "subvol=pictures/stitchpics" "compress=zstd" "x-systemd.automount" ];
2024-02-25 19:49:15 -08:00
};
2024-02-29 16:07:01 -08:00
"/home/stitchynyan/Programs/Steam" = {
device = "/dev/disk/by-uuid/feb8239f-5d09-4184-8e46-52185beaa040";
fsType = "btrfs";
2024-11-03 11:11:06 -08:00
options = [ "subvol=games/stitchgames" "compress=zstd" "x-systemd.automount" ];
2024-02-29 16:07:01 -08:00
};
"/home/stitchynyan/Videos" = {
device = "/dev/disk/by-uuid/feb8239f-5d09-4184-8e46-52185beaa040";
fsType = "btrfs";
2024-11-03 11:11:06 -08:00
options = [ "subvol=videos/stitchshows" "compress=zstd" "x-systemd.automount" ];
2024-02-29 16:07:01 -08:00
};
"/home/stitchynyan/VirtualMachines" = {
device = "/dev/disk/by-uuid/feb8239f-5d09-4184-8e46-52185beaa040";
fsType = "btrfs";
2024-11-03 11:11:06 -08:00
options = [ "subvol=virtualmachines/stitchvms" "compress=zstd" "x-systemd.automount" ];
2024-02-29 16:07:01 -08:00
};
};
boot.initrd.luks.devices."luksdev".device = "/dev/disk/by-uuid/775b3331-6045-474a-8b9e-523f31a1a8a2";
environment.etc."crypttab".text = ''
data /dev/disk/by-uuid/15510fe2-5b98-4148-8710-deb8f5bd68e6 /persist/secrets/drive.key
'';
2024-02-25 19:49:15 -08:00
swapDevices = [ ];
2024-03-05 02:01:18 -08:00
services.xserver.displayManager.lightdm.enable = false;
services.monado = {
enable = true;
defaultRuntime = true;
};
2024-02-29 16:07:01 -08:00
2024-06-18 00:23:44 -07:00
systemd.user.services.monado.environment = {
STEAMVR_LH_ENABLE = "1";
XRT_COMPOSITOR_COMPUTE = "1";
};
2024-11-27 02:41:47 -08:00
hardware = {
2024-08-08 04:52:13 -07:00
graphics = {
2024-02-25 19:49:15 -08:00
enable = true;
2024-08-08 04:52:13 -07:00
enable32Bit = true;
2024-02-25 19:49:15 -08:00
};
};
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "schedutil";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}