Compare commits

..

No commits in common. "59153cb5439f65931c40d7ad9172e261ffaf55a3" and "0b4fe5329851ac2ef7e61a27ffdfbe392db352cb" have entirely different histories.

3 changed files with 8 additions and 2 deletions

View file

@ -95,6 +95,8 @@ in {
onBoot = "ignore"; # We are doing development, not a server onBoot = "ignore"; # We are doing development, not a server
qemu = { qemu = {
package = pkgs.qemu_full; package = pkgs.qemu_full;
ovmf.enable = true;
ovmf.packages = [ pkgs.OVMFFull ];
swtpm.enable = true; swtpm.enable = true;
}; };
}; };

View file

@ -28,7 +28,11 @@ in {
hardware.amdgpu.opencl.enable = true; 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 = { environment.variables = {
AMD_VULKAN_ICD = mkIf (cfg.defaultVulkanImplementation == "amdvlk") (strings.toUpper cfg.defaultVulkanImplementation);
ROC_ENABLE_PRE_VEGA = "1"; # Enable OpenCL with Polaris GPUs ROC_ENABLE_PRE_VEGA = "1"; # Enable OpenCL with Polaris GPUs
}; };

View file

@ -8,8 +8,8 @@ in {
enable = mkEnableOption "AMD gpus"; enable = mkEnableOption "AMD gpus";
useProprietary = mkEnableOption "Use proprietary AMDGPU Pro"; useProprietary = mkEnableOption "Use proprietary AMDGPU Pro";
defaultVulkanImplementation = mkOption { defaultVulkanImplementation = mkOption {
description = "Legacy, can only be set to radv"; description = "Wether to use RADV or AMDVLK by default";
type = with types; enum [ "radv" ]; type = with types; enum [ "amdvlk" "radv" ];
default = "radv"; default = "radv";
}; };
kernelDriver = mkOption { kernelDriver = mkOption {