sab: fix
This commit is contained in:
parent
cdc573ba0e
commit
25041f3cf7
1 changed files with 10 additions and 8 deletions
|
@ -1,18 +1,20 @@
|
|||
{ pkgs, lib, ... }:
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
services.sabnzbd = {
|
||||
enable = true;
|
||||
user = "media_user";
|
||||
group = "media_group";
|
||||
};
|
||||
|
||||
# The nix-provided options force a sabnzbd-user to a certain degree
|
||||
systemd.services.sabnzbd = {
|
||||
description = "sabnzbd server";
|
||||
bindsTo = [ "wg.service" ];
|
||||
after = lib.mkForce [ "wg.service" ];
|
||||
after = [ "wg.service" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
Type = "forking";
|
||||
GuessMainPID = "no";
|
||||
User = "media_user";
|
||||
Group = "media_group";
|
||||
NetworkNamespacePath = "/var/run/netns/wg";
|
||||
ExecStart = "${pkgs.sabnzbd}/bin/sabnzbd -d -f /var/lib/sabnzbd/sabnzbd.ini";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue