summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2024-03-11 13:26:44 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2024-03-11 13:26:44 +0530
commit5b26703c862f0e64eb6460af95eef5e442d2591b (patch)
tree3702f013977bb64f2071512f505aff324880f685
parent05f1d4fd5ebd7fc0dd9778f878807f2ec3b7234c (diff)
update
-rw-r--r--modules/amdgpu.nix26
-rw-r--r--modules/core/bluetooth.nix2
-rw-r--r--modules/nvidia.nix2
3 files changed, 28 insertions, 2 deletions
diff --git a/modules/amdgpu.nix b/modules/amdgpu.nix
new file mode 100644
index 0000000..898926b
--- /dev/null
+++ b/modules/amdgpu.nix
@@ -0,0 +1,26 @@
+{ pkgs, config, ... }:
+
+{
+ hardware.opengl = {
+ enable = true;
+ driSupport = true;
+ driSupport32Bit = true;
+ };
+
+ hardware.opengl.extraPackages = with pkgs; [
+ rocmPackages.clr.icd
+ amdvlk
+ ];
+
+ hardware.opengl.extraPackages32 = with pkgs; [
+ driversi686Linux.amdvlk
+ ];
+
+ services.xserver.videoDrivers = [ "amdgpu" ];
+
+ systemd.tmpfiles.rules = [
+ "L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
+ ];
+
+ # environment.systemPackages = [ pkgs.cudatoolkit ];
+}
diff --git a/modules/core/bluetooth.nix b/modules/core/bluetooth.nix
index fbd9b48..5e64d97 100644
--- a/modules/core/bluetooth.nix
+++ b/modules/core/bluetooth.nix
@@ -3,5 +3,5 @@
{
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
- # services.blueman.enable = true;
+ services.blueman.enable = true;
}
diff --git a/modules/nvidia.nix b/modules/nvidia.nix
index f8f3bb7..d79f2bb 100644
--- a/modules/nvidia.nix
+++ b/modules/nvidia.nix
@@ -22,7 +22,7 @@
enable = true;
enableOffloadCmd = true;
};
- intelBusId = "PCI:0:2:0";
+ amdgpuBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
};
};