mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
Compare commits
2 commits
0b4fe53298
...
59153cb543
| Author | SHA1 | Date | |
|---|---|---|---|
| 59153cb543 | |||
| 0cedc97711 |
3 changed files with 2 additions and 8 deletions
|
|
@ -95,8 +95,6 @@ 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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -28,11 +28,7 @@ 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
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 = "Wether to use RADV or AMDVLK by default";
|
description = "Legacy, can only be set to radv";
|
||||||
type = with types; enum [ "amdvlk" "radv" ];
|
type = with types; enum [ "radv" ];
|
||||||
default = "radv";
|
default = "radv";
|
||||||
};
|
};
|
||||||
kernelDriver = mkOption {
|
kernelDriver = mkOption {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue