diff options
| -rw-r--r-- | modules/amdgpu.nix | 26 | ||||
| -rw-r--r-- | modules/core/bluetooth.nix | 2 | ||||
| -rw-r--r-- | modules/nvidia.nix | 2 | 
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";      };    }; | 
