cleanup more hardware stuff
This commit is contained in:
parent
8f0a0e82c8
commit
2863241423
4 changed files with 21 additions and 18 deletions
|
@ -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 ];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue