This commit is contained in:
Lilith 2024-07-24 01:15:10 +02:00
parent 6bd365f84e
commit bd49791e06
Signed by: lilith
GPG key ID: 8712A0F317C37175
2 changed files with 10 additions and 5 deletions

View file

@ -18,5 +18,8 @@
./syncthing.nix ./syncthing.nix
./wayland.nix ./wayland.nix
./zsh.nix ./zsh.nix
] ++ (lib.optional config.ollama.enable ./ollama.nix);
./ollama.nix
];
} }

View file

@ -1,6 +1,8 @@
{...}: { { options, lib, ...}: {
options = lib.mkIf options.ollama.enable {
services.ollama = { services.ollama = {
enable = true; enable = true;
acceleration = "rocm"; acceleration = "rocm";
}; };
};
} }