From 25b6b9ca7722358630e84a8e054be8f9fb9d67b3 Mon Sep 17 00:00:00 2001 From: Inex Code Date: Sun, 8 Dec 2024 16:39:30 +0300 Subject: [PATCH] fix: SelfPrivacy API didn't load on system startup --- nixos/module.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/nixos/module.nix b/nixos/module.nix index 2f7a164..6199597 100644 --- a/nixos/module.nix +++ b/nixos/module.nix @@ -49,6 +49,7 @@ in ]; after = [ "network-online.target" ]; wants = [ "network-online.target" ]; + wantedBy = [ "multi-user.target" ]; serviceConfig = { User = "root"; ExecStart = "${selfprivacy-graphql-api}/bin/app.py"; @@ -83,6 +84,7 @@ in ]; after = [ "network-online.target" ]; wants = [ "network-online.target" ]; + wantedBy = [ "multi-user.target" ]; serviceConfig = { User = "root"; ExecStart = "${pkgs.python312Packages.huey}/bin/huey_consumer.py selfprivacy_api.task_registry.huey"; @@ -115,7 +117,7 @@ in ExecStart = '' ${nixos-rebuild} switch --flake .#${config-id} ''; - KillMode = "none"; + KillMode = "mixed"; SendSIGKILL = "no"; }; restartIfChanged = false; @@ -142,7 +144,7 @@ in ExecStart = '' ${nixos-rebuild} switch --flake .#${config-id} ''; - KillMode = "none"; + KillMode = "mixed"; SendSIGKILL = "no"; }; restartIfChanged = false; @@ -164,7 +166,7 @@ in ExecStart = '' ${nixos-rebuild} switch --rollback --flake .#${config-id} ''; - KillMode = "none"; + KillMode = "mixed"; SendSIGKILL = "no"; }; restartIfChanged = false;