remove rocm

This commit is contained in:
Max Känner 2024-12-28 20:06:27 +01:00
parent 322653d25f
commit b803a816db
2 changed files with 19 additions and 5 deletions

View File

@ -30,8 +30,13 @@
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
rocmSupport = true;
allowUnfreePredicate = pkg:
builtins.elem (nixpkgs.lib.getName pkg) [
"discord"
"samsung-UnifiedLinuxDriver"
"steam"
"steam-unwrapped"
];
};
};
in {

View File

@ -14,8 +14,18 @@ in {
boot.initrd.kernelModules = ["amdgpu"];
services.xserver.videoDrivers = ["amdgpu"];
systemd.tmpfiles.rules = [
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
systemd.tmpfiles.rules = let
rocmEnv = pkgs.symlinkJoin {
name = "rocm-combined";
paths = with pkgs.rocmPackages; [
rocblas
hipblas
rocm-smi
clr
];
};
in [
"L+ /opt/rocm - - - - ${rocmEnv}"
];
hardware.graphics = {
@ -23,7 +33,6 @@ in {
enable32Bit = true;
extraPackages = with pkgs; [
rocmPackages.clr.icd
rocmPackages.rocm-smi
amdvlk
];
extraPackages32 = with pkgs; [