diff --git a/hosts/t480/configuration.nix b/hosts/t480/configuration.nix index efe28e15..2800ecf8 100644 --- a/hosts/t480/configuration.nix +++ b/hosts/t480/configuration.nix @@ -12,7 +12,6 @@ ./cron.nix ./neomutt.nix ./newsboat - ./ollama.nix ./secrets.nix ./xserver.nix diff --git a/hosts/t480/ollama.nix b/hosts/t480/ollama.nix deleted file mode 100644 index 137ad6b6..00000000 --- a/hosts/t480/ollama.nix +++ /dev/null @@ -1,10 +0,0 @@ -{ - services = { - ollama = { - enable = false; - acceleration = "rocm"; - }; - - open-webui.enable = false; - }; -} diff --git a/modules2/hosts/t480/ollama.nix b/modules2/hosts/t480/ollama.nix new file mode 100644 index 00000000..a83349e0 --- /dev/null +++ b/modules2/hosts/t480/ollama.nix @@ -0,0 +1,3 @@ +{ + flake.modules.nixos.pc.services.ollama.enable = true; +} diff --git a/modules2/hosts/t480/open-webui.nix b/modules2/hosts/t480/open-webui.nix new file mode 100644 index 00000000..f0bbfd77 --- /dev/null +++ b/modules2/hosts/t480/open-webui.nix @@ -0,0 +1,3 @@ +{ + flake.modules.nixos.pc.services.open-webui.enable = true; +} diff --git a/modules2/ollama/acceleration.nix b/modules2/ollama/acceleration.nix new file mode 100644 index 00000000..498aff21 --- /dev/null +++ b/modules2/ollama/acceleration.nix @@ -0,0 +1,3 @@ +{ + flake.modules.nixos.pc.services.ollama.acceleration = "rocm"; +} diff --git a/modules2/ollama/models.nix b/modules2/ollama/models.nix new file mode 100644 index 00000000..7919e246 --- /dev/null +++ b/modules2/ollama/models.nix @@ -0,0 +1,5 @@ +{ + flake.modules.nixos.pc.services.ollama.loadModels = [ + "dimavz/whisper-tiny" + ]; +}