Add proper hardware.nix file for Steam Deck

This commit is contained in:
Jimbo 2024-09-02 19:39:58 -04:00
parent 6dc0822306
commit 0feea0451b

View file

@ -16,15 +16,12 @@
availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usbhid"
"usb_storage"
"sd_mod"
"sdhci_pci"
];
kernelModules = [
"vfio"
"vfio_pci"
"vfio_iommu_type1"
"kvm-amd"
];
};
@ -39,18 +36,19 @@
# Mount everything as necessary
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/f0786b07-8303-416f-87ff-276bfd696387";
fsType = "bcachefs";
device = "/dev/disk/by-uuid/b29e4367-8b18-415b-ada9-4d7984db075b";
fsType = "btrfs";
};
"/boot" = {
device = "/dev/disk/by-uuid/EF6D-9009";
device = "/dev/disk/by-uuid/9DE4-C162";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
};
# Set the swap partition
swapDevices = [
{ device = "/dev/disk/by-uuid/2e4c5120-716d-4cdc-84a0-c9e6391760db"; }
{ device = "/dev/disk/by-uuid/19d962f3-49f5-4fb6-9f11-07525c6cfff0"; }
];
# Enables DHCP on each ethernet and wireless interface.