initial graphana
This commit is contained in:
25
modules/hardware/gpu/amd/default.nix
Normal file
25
modules/hardware/gpu/amd/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ lib, pkgs, config, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.hardware.gpu.amd;
|
||||
in {
|
||||
kernelParams = [ "amdgpu.ppfeaturemask=0xffffffff" ];
|
||||
|
||||
# Configure programs
|
||||
programs = { corectrl.enable };
|
||||
|
||||
# Configure environment
|
||||
environment = {
|
||||
# Force radv
|
||||
variables.AMD_VULKAN_ICD = "RADV";
|
||||
};
|
||||
# Hardware configs
|
||||
hardware = {
|
||||
# Enable OpenGL
|
||||
opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
9
modules/hardware/gpu/amd/options.nix
Normal file
9
modules/hardware/gpu/amd/options.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ lib, ... }:
|
||||
with lib;
|
||||
{
|
||||
options.hardware.gpu.amd = {
|
||||
enable = mkEnableOption "amd hardware config";
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user