Ollama and update

This commit is contained in:
Bart van der Braak 2025-02-06 14:13:22 +01:00
parent 6ab03d4cb5
commit cce1e33c23
3 changed files with 19 additions and 7 deletions

View file

@ -39,11 +39,11 @@
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1737404254, "lastModified": 1738804720,
"narHash": "sha256-L8Lxp/WVdy9gKO2cXptphdP8cMsnGvZF5Noj8N3jLzI=", "narHash": "sha256-3bAR5ALk5AoFt4BlsQRdjSV6VVH6lbgtYdElb0A+qDc=",
"owner": "0xc000022070", "owner": "0xc000022070",
"repo": "zen-browser-flake", "repo": "zen-browser-flake",
"rev": "f8ef9c97ac2f49d5c04dbf3b3d80a0490c05fefb", "rev": "7868f1c54b7f8e09be194aaa0934791596df1ea1",
"type": "github" "type": "github"
}, },
"original": { "original": {

16
nixos/modules/ollama.nix Normal file
View file

@ -0,0 +1,16 @@
{ ... }:
{
# Add Ollama and OpenWebUI
services.ollama = {
enable = true;
loadModels = [ deepseek-r1:32b ];
acceleration = "rocm";
rocmOverrideGfx = "11.0.0";
environmentVariables = {
HSA_OVERRIDE_GFX_VERSION = "11.0.0";
};
};
services.open-webui.enable = true;
}

View file

@ -71,9 +71,5 @@
virtualisation.docker = { virtualisation.docker = {
enable = true; enable = true;
enableOnBoot = false; enableOnBoot = false;
rootless = {
enable = true;
setSocketVariable = true;
};
}; };
} }