cleanup more hardware stuff

This commit is contained in:
Christoph Cullmann 2024-10-10 21:59:50 +02:00
parent 8f0a0e82c8
commit 2863241423
No known key found for this signature in database
4 changed files with 21 additions and 18 deletions

View file

@ -10,6 +10,12 @@
boot.initrd.kernelModules = [ "amdgpu" ];
boot.kernelModules = [ "kvm-amd" ];
# AMD microcode updates please
hardware.cpu.amd.updateMicrocode = true;
# amd graphics
hardware.graphics.extraPackages = with pkgs; [ amdvlk rocm-opencl-icd rocm-opencl-runtime ];
# /boot efi partition to boot in UEFI mode
fileSystems."/boot" =
{ device = "/dev/disk/by-id/nvme-CT4000P3PSSD8_2325E6E63746-part1";
@ -17,10 +23,4 @@
options = [ "fmask=0022" "dmask=0022" ];
neededForBoot = true;
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# amd graphics
hardware.graphics.extraPackages = with pkgs; [ amdvlk rocm-opencl-icd rocm-opencl-runtime ];
}