summaryrefslogtreecommitdiff
path: root/os/srv/ollama.nix
diff options
context:
space:
mode:
Diffstat (limited to 'os/srv/ollama.nix')
-rw-r--r--os/srv/ollama.nix27
1 files changed, 0 insertions, 27 deletions
diff --git a/os/srv/ollama.nix b/os/srv/ollama.nix
deleted file mode 100644
index 3afc684..0000000
--- a/os/srv/ollama.nix
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- config,
- lib,
- pkgs,
- ...
-}:
-let
- cfg = config.os.srv.ollama;
-in
-{
- options.os.srv.ollama.enable = lib.mkEnableOption "Ollama AI service";
- config = lib.mkIf cfg.enable {
- fileSystems."/models" = {
- device = "/home/ollama";
- fsType = "none";
- options = [ "bind" ];
- };
-
- services.ollama = {
- enable = true;
- package = pkgs.ollama-rocm;
- rocmOverrideGfx = "12.0.1";
- user = "ollama";
- models = "/models";
- };
- };
-}