m 2 sabnzbd: init
This commit is contained in:
parent
b9b9c55b88
commit
4ea7dfe03a
16
2configs/sabnzbd.nix
Normal file
16
2configs/sabnzbd.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ pkgs, config, ... }:
|
||||
|
||||
with config.krebs.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
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue