nix/os-mods/amdgpu/default.nix
Tristan Druyen 2187e7a7ed
WIP
- Allow kde connect in firewall
- Add neofetch theme
- modularize amdgpu stuff
- add rbw bw cli
- switch to firefox beta
- add krita & mpv
- add monero to desktop
- add corectrl
- update flakes
- add protonup-qt
2023-11-06 04:40:58 +01:00

29 lines
586 B
Nix

{ config
, lib
, pkgs
, ...
}: {
boot = {
initrd.availableKernelModules = [ "amdgpu" ];
kernelModules = [ "amdgpu" ];
# kernelParams = [ "amdgpu.ppfeaturemask=0xffffffff" ];
};
programs.corectrl = {
enable = true;
gpuOverclock.enable = true;
};
services.xserver.videoDrivers = [ "amdgpu" ];
systemd.tmpfiles.rules = [
"L+ /opt/rocm/hip - - - - ${pkgs.hip}"
];
hardware.opengl = {
driSupport = true;
driSupport32Bit = true;
extraPackages = with pkgs; [
rocm-opencl-icd
rocm-opencl-runtime
];
};
}