diff --git a/modules/systemd.nix b/modules/systemd.nix index a44349a..abef369 100644 --- a/modules/systemd.nix +++ b/modules/systemd.nix @@ -23,7 +23,7 @@ Type = "oneshot"; RemainAfterExit = true; }; - wantedBy = [ "multi-user.target" ]; + wantedBy = [ "system-manager.target" ]; script = '' # Remove old links rm -rf ${target} diff --git a/options/ollama.nix b/options/ollama.nix index e0d72a9..7a23ed1 100644 --- a/options/ollama.nix +++ b/options/ollama.nix @@ -83,7 +83,7 @@ in config = lib.mkIf cfg.enable { systemd.services.ollama = { description = "Server for local large language models"; - wantedBy = [ "multi-user.target" ]; + wantedBy = [ "system-manager.target" ]; after = [ "network.target" ]; environment = cfg.environmentVariables // { HOME = cfg.home; @@ -152,7 +152,7 @@ in systemd.services.ollama-model-loader = lib.mkIf (cfg.loadModels != [ ]) { description = "Download ollama models in the background"; wantedBy = [ - "multi-user.target" + "system-manager.target" "ollama.service" ]; after = [ "ollama.service" ]; diff --git a/options/open-webui.nix b/options/open-webui.nix index b8868e0..28aeb95 100644 --- a/options/open-webui.nix +++ b/options/open-webui.nix @@ -77,7 +77,7 @@ in config = lib.mkIf cfg.enable { systemd.services.open-webui = { description = "User-friendly WebUI for LLMs"; - wantedBy = [ "multi-user.target" ]; + wantedBy = [ "system-manager.target" ]; after = [ "network.target" ]; environment = {