mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
Compare commits
No commits in common. "59153cb5439f65931c40d7ad9172e261ffaf55a3" and "0b4fe5329851ac2ef7e61a27ffdfbe392db352cb" have entirely different histories.
59153cb543
...
0b4fe53298
3 changed files with 8 additions and 2 deletions
|
|
@ -95,6 +95,8 @@ in {
|
|||
onBoot = "ignore"; # We are doing development, not a server
|
||||
qemu = {
|
||||
package = pkgs.qemu_full;
|
||||
ovmf.enable = true;
|
||||
ovmf.packages = [ pkgs.OVMFFull ];
|
||||
swtpm.enable = true;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -28,7 +28,11 @@ in {
|
|||
|
||||
hardware.amdgpu.opencl.enable = true;
|
||||
|
||||
hardware.amdgpu.amdvlk.enable = cfg.defaultVulkanImplementation == "amdvlk";
|
||||
hardware.amdgpu.amdvlk.support32Bit.enable = mkDefault config.hardware.amdgpu.amdvlk.enable;
|
||||
|
||||
environment.variables = {
|
||||
AMD_VULKAN_ICD = mkIf (cfg.defaultVulkanImplementation == "amdvlk") (strings.toUpper cfg.defaultVulkanImplementation);
|
||||
ROC_ENABLE_PRE_VEGA = "1"; # Enable OpenCL with Polaris GPUs
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ in {
|
|||
enable = mkEnableOption "AMD gpus";
|
||||
useProprietary = mkEnableOption "Use proprietary AMDGPU Pro";
|
||||
defaultVulkanImplementation = mkOption {
|
||||
description = "Legacy, can only be set to radv";
|
||||
type = with types; enum [ "radv" ];
|
||||
description = "Wether to use RADV or AMDVLK by default";
|
||||
type = with types; enum [ "amdvlk" "radv" ];
|
||||
default = "radv";
|
||||
};
|
||||
kernelDriver = mkOption {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue