summary refs log tree commit diff
path: root/nixos/modules/services/networking/sabnzbd.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/services/networking/sabnzbd.nix')
-rw-r--r--nixos/modules/services/networking/sabnzbd.nix13
1 files changed, 7 insertions, 6 deletions
diff --git a/nixos/modules/services/networking/sabnzbd.nix b/nixos/modules/services/networking/sabnzbd.nix
index 83db0841b34..77bf64b80d0 100644
--- a/nixos/modules/services/networking/sabnzbd.nix
+++ b/nixos/modules/services/networking/sabnzbd.nix
@@ -39,13 +39,14 @@ in
         }
       ];
 
-    jobs.sabnzbd =
+    systemd.services.sabnzbd =
       { description = "sabnzbd server";
-
-        startOn = "started network-interfaces";
-        stopOn = "stopping network-interfaces";
-
-        exec = "${sabnzbd}/bin/sabnzbd -d -f ${cfg.configFile}";
+        wantedBy    = [ "multi-user.target" ];
+        after = [ "network.target" ];
+        serviceConfig = {
+          Type = "forking";
+          ExecStart = "${sabnzbd}/bin/sabnzbd -d -f ${cfg.configFile}";
+        };
       };
 
   };