nixos/configuration/Vanguard.nix
Evie Litherland-Smith 29e3c29e3a Enable ollama service for Tone
Enable GPU acceleration for ollama on Vanguard

Remove extra kernel / driver config from Northstar
2024-06-25 10:21:50 +01:00

27 lines
581 B
Nix

{config, ...}: {
imports = [./desktop.nix];
boot = {
extraModulePackages = with config.boot.kernelPackages; [v4l2loopback];
extraModprobeConfig = ''
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
'';
};
hardware = {
opengl = {
driSupport = true;
driSupport32Bit = true;
};
amdgpu.initrd.enable = true;
steam-hardware.enable = true;
};
services.ollama = {
enable = true;
acceleration = "rocm";
};
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
};
}