summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/sabnzbd.nix
blob: 90a9f284f0e2b3cc4edd4bf30241d60ce4139a8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ pkgs, config, ... }:

with import <stockholm/lib>;
let
  web-port = 8080;
in {
  services.sabnzbd.enable = true;
  services.sabnzbd.group = "download";
  systemd.services.sabnzbd.environment.SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";

  users.users.sabnzbd.group = mkForce "download";

  networking.firewall.extraCommands = ''
    iptables -A INPUT -i retiolum -p tcp --dport ${toString web-port} -j ACCEPT
  '';
}