forked from aylac.top/nixcfg
this repo has no description
at main 510 B view raw
1{ 2 config, 3 lib, 4 ... 5}: { 6 options.myHardware.amd.gpu.enable = lib.mkEnableOption "AMD GPU configuration."; 7 8 config = lib.mkIf config.myHardware.amd.gpu.enable { 9 environment.variables = { 10 DPAU_DRIVER = "radeonsi"; 11 GSK_RENDERER = "ngl"; 12 }; 13 14 hardware = { 15 amdgpu = { 16 initrd.enable = true; 17 18 amdvlk = { 19 enable = true; 20 support32Bit.enable = true; 21 }; 22 23 opencl.enable = true; 24 }; 25 26 graphics.enable = true; 27 }; 28 }; 29}