Add gpu drivers for count
This commit is contained in:
parent
06466f1064
commit
6788693016
1 changed files with 21 additions and 0 deletions
|
|
@ -24,6 +24,27 @@
|
||||||
# Use latest kernel.
|
# Use latest kernel.
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
|
# Enable AMD GPU drivers
|
||||||
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||||
|
services.xserver.videoDrivers = [ "amdgpu" ];
|
||||||
|
|
||||||
|
# Enable ROCm support
|
||||||
|
hardware.graphics.enable = true;
|
||||||
|
hardware.amdgpu.opencl.enable = true;
|
||||||
|
|
||||||
|
# Add the ROCm packages to your system
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
rocmPackages.rocminfo
|
||||||
|
rocmPackages.rocm-smi
|
||||||
|
];
|
||||||
|
|
||||||
|
services.ollama = {
|
||||||
|
enable = true;
|
||||||
|
acceleration = "rocm";
|
||||||
|
# Force the RX 6600 to use compatible ROCm kernels
|
||||||
|
rocmOverrideGfx = "10.3.0";
|
||||||
|
};
|
||||||
|
|
||||||
# Setup keyfile
|
# Setup keyfile
|
||||||
boot.initrd.secrets = {
|
boot.initrd.secrets = {
|
||||||
"/boot/crypto_keyfile.bin" = null;
|
"/boot/crypto_keyfile.bin" = null;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue