Enable ollama service for Tone
Enable GPU acceleration for ollama on Vanguard Remove extra kernel / driver config from Northstar
This commit is contained in:
parent
53681b102a
commit
29e3c29e3a
|
@ -1,20 +1 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [./laptop.nix];
|
||||
boot = {
|
||||
initrd.kernelModules = ["amdgpu"];
|
||||
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;
|
||||
extraPackages = with pkgs; [amdvlk rocmPackages.clr.icd];
|
||||
extraPackages32 = [pkgs.driversi686Linux.amdvlk];
|
||||
};
|
||||
}
|
||||
{...}: {imports = [./laptop.nix];}
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
systemPackages = with pkgs; [openfortivpn];
|
||||
};
|
||||
services = {
|
||||
ollama.enable = true;
|
||||
samba.enable = true;
|
||||
hardware.bolt.enable = true;
|
||||
};
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{config, ...}: {
|
||||
imports = [./desktop.nix];
|
||||
boot = {
|
||||
initrd.kernelModules = ["amdgpu"];
|
||||
extraModulePackages = with config.boot.kernelPackages; [v4l2loopback];
|
||||
extraModprobeConfig = ''
|
||||
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
|
||||
|
@ -12,9 +11,14 @@
|
|||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
};
|
||||
amdgpu.initrd.enable = true;
|
||||
steam-hardware.enable = true;
|
||||
};
|
||||
services.ollama.enable = true;
|
||||
|
||||
services.ollama = {
|
||||
enable = true;
|
||||
acceleration = "rocm";
|
||||
};
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
|
|
Loading…
Reference in a new issue