Skip to content

Commit

Permalink
fix: use system-manager.target
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkolenz committed Dec 4, 2024
1 parent 6f88965 commit e1eb252
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/systemd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
Type = "oneshot";
RemainAfterExit = true;
};
wantedBy = [ "multi-user.target" ];
wantedBy = [ "system-manager.target" ];
script = ''
# Remove old links
rm -rf ${target}
Expand Down
4 changes: 2 additions & 2 deletions options/ollama.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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" ];
Expand Down
2 changes: 1 addition & 1 deletion options/open-webui.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit e1eb252

Please sign in to comment.