From 0770ec8ff4d6a163fe243159f46d834f164813e7 Mon Sep 17 00:00:00 2001 From: Rachel Lambda Samuelsson Date: Mon, 4 Nov 2024 14:14:28 +0100 Subject: [PATCH] amd gpu support --- nixos/computational/configuration.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nixos/computational/configuration.nix b/nixos/computational/configuration.nix index 87229ba..4945376 100644 --- a/nixos/computational/configuration.nix +++ b/nixos/computational/configuration.nix @@ -10,8 +10,18 @@ enable = true; driSupport = true; driSupport32Bit = true; + extraPackages = [ + pkgs.rocmPackages.clr.icd + ]; }; + # amd gpu + boot.initrd.kernelModules = [ "amdgpu" ]; + services.xserver.videoDrivers = [ "amdgpu" ]; + systemd.tmpfiles.rules = [ + "L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}" + ]; + # [BOOT] boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true;