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}"; + }; }; };