2016-09-02 10:49:04 +00:00
|
|
|
{ pkgs, config, ... }:
|
|
|
|
|
2016-10-20 18:54:38 +00:00
|
|
|
with import <stockholm/lib>;
|
2016-09-02 10:49:04 +00:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
}
|