This commit is contained in:
parent
d3ad226556
commit
aeb09fd985
4 changed files with 49 additions and 57 deletions
|
@ -11,12 +11,10 @@ in
|
|||
'';
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
warnings = [ "system(hardware.graphics.amdgpu): ROCM Disabled for now. Re-enable it when https://github.com/NixOS/nixpkgs/pull/418461 is available" ];
|
||||
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
|
||||
# Set acceleration to rocm
|
||||
# services.ollama.acceleration = "rocm";
|
||||
services.ollama.acceleration = "rocm";
|
||||
|
||||
# Load amdgpu driver for Xorg and Wayland
|
||||
services.xserver = {
|
||||
|
@ -24,11 +22,10 @@ in
|
|||
videoDrivers = ["amdgpu"];
|
||||
};
|
||||
|
||||
# NOTE: Fixed when https://github.com/NixOS/nixpkgs/pull/418461 is available
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
# extraPackages = with pkgs; [ rocmPackages.clr.icd ];
|
||||
extraPackages = with pkgs; [ rocmPackages.clr.icd ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue