1 { config, pkgs, lib, ... }:
6 cfg = config.services.prowlarr;
12 enable = mkEnableOption (lib.mdDoc "Prowlarr");
14 openFirewall = mkOption {
17 description = lib.mdDoc "Open ports in the firewall for the Prowlarr web interface.";
22 config = mkIf cfg.enable {
23 systemd.services.prowlarr = {
24 description = "Prowlarr";
25 after = [ "network.target" ];
26 wantedBy = [ "multi-user.target" ];
31 StateDirectory = "prowlarr";
32 ExecStart = "${pkgs.prowlarr}/bin/Prowlarr -nobrowser -data=/var/lib/prowlarr";
33 Restart = "on-failure";
37 networking.firewall = mkIf cfg.openFirewall {
38 allowedTCPPorts = [ 9696 ];