summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2026-01-06 18:41:15 +0100
committerMel <mel@rnrd.eu>2026-01-06 18:41:15 +0100
commitee5f89c69f60fbe2821b9fdf780146fbec73725c (patch)
treef8079c0b1b972ddaed92937d89a3b95f65c8698d /modules
parent1c0969c93bbc18d4327bc213fa82df659e6bd61c (diff)
downloadminerals-ee5f89c69f60fbe2821b9fdf780146fbec73725c.tar.zst
minerals-ee5f89c69f60fbe2821b9fdf780146fbec73725c.zip
Switch Bismuth from Nvidia to AMD, move hardware modules to own directory
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'modules')
-rw-r--r--modules/hardware/amd-gpu.nix31
-rw-r--r--modules/hardware/arm.nix (renamed from modules/arm.nix)0
-rw-r--r--modules/hardware/nvidia-gpu.nix (renamed from modules/nvidia.nix)0
3 files changed, 31 insertions, 0 deletions
diff --git a/modules/hardware/amd-gpu.nix b/modules/hardware/amd-gpu.nix
new file mode 100644
index 0000000..cfaa974
--- /dev/null
+++ b/modules/hardware/amd-gpu.nix
@@ -0,0 +1,31 @@
+{
+ pkgs,
+ ...
+}:
+
+{
+ hardware.graphics = {
+ enable = true;
+ enable32Bit = true;
+
+ # use amdvlk in conjunction with amdgpu,
+ # applications can choose which one to use.
+ extraPackages = with pkgs; [ amdvlk ];
+ extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ];
+ };
+
+ services.xserver.videoDrivers = [ "amdgpu" ];
+
+ hardware.amdgpu = {
+ opencl.enable = true;
+ initrd.enable = true;
+ overdrive.enable = false;
+ legacySupport.enable = false;
+ };
+
+ services.lact.enable = true;
+ environment.systemPackages = with pkgs; [
+ lact
+ clinfo
+ ];
+}
diff --git a/modules/arm.nix b/modules/hardware/arm.nix
index 63a448f..63a448f 100644
--- a/modules/arm.nix
+++ b/modules/hardware/arm.nix
diff --git a/modules/nvidia.nix b/modules/hardware/nvidia-gpu.nix
index dae9fb5..dae9fb5 100644
--- a/modules/nvidia.nix
+++ b/modules/hardware/nvidia-gpu.nix