{ config, lib, ... }: { ark.directories = [ config.services.ollama.home ]; hm.programs.firefox.profiles.default.bookmarks = [ { name = "Bookmarks Toolbar"; toolbar = true; bookmarks = [ { name = "Ollama"; url = "http://127.0.0.1:11435"; } ]; } ]; services = { ollama = { enable = false; host = "0.0.0.0"; port = 11434; user = "ollama"; group = "ollama"; acceleration = "rocm"; rocmOverrideGfx = "10.3.0"; environmentVariables.OLLAMA_ORIGINS = lib.concatStringsSep "," [ "http://127.0.0.1:11435" "http://eonwe.shire.net:11435" "http://eonwe:11435" "http://localhost:11435" ]; openFirewall = true; }; open-webui = { enable = false; port = 11436; environment = { ANONYMIZED_TELEMETRY = "False"; DO_NOT_TRACK = "True"; ENABLE_SIGNUP = "False"; OLLAMA_BASE_URL = "http://127.0.0.1:11434"; SCARF_NO_ANALYTICS = "True"; WEBUI_AUTH = "False"; WEBUI_URL = "http://eonwe.shire.net:11436"; }; }; nextjs-ollama-llm-ui = { enable = false; hostname = "0.0.0.0"; port = 11435; ollamaUrl = "http://127.0.0.1:11434"; }; }; systemd.services = { ollama = { serviceConfig = { StateDirectory = lib.mkForce config.services.ollama.home; DynamicUser = lib.mkForce false; User = config.services.ollama.user; Group = config.services.ollama.group; }; }; nextjs-ollama-llm-ui.serviceConfig.CacheDirectory = "nextjs-ollama-llm-ui"; }; }