From 0feea0451b040c8b50ba0612da4331d5bde273ed Mon Sep 17 00:00:00 2001 From: Jimbo Date: Mon, 2 Sep 2024 19:39:58 -0400 Subject: [PATCH] Add proper hardware.nix file for Steam Deck --- nixos/hardware/machines/deck.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/nixos/hardware/machines/deck.nix b/nixos/hardware/machines/deck.nix index fd13391..beaad97 100644 --- a/nixos/hardware/machines/deck.nix +++ b/nixos/hardware/machines/deck.nix @@ -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.