nixos/prowlarr: init
This commit is contained in:
parent
4228bbe0b2
commit
3d79c9250a
|
@ -269,6 +269,14 @@
|
||||||
<link linkend="opt-services.postfixadmin.enable">postfixadmin</link>.
|
<link linkend="opt-services.postfixadmin.enable">postfixadmin</link>.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
<link xlink:href="https://wiki.servarr.com/prowlarr">prowlarr</link>,
|
||||||
|
an indexer manager/proxy built on the popular arr .net/reactjs
|
||||||
|
base stack
|
||||||
|
<link linkend="opt-services.prowlarr.enable">services.prowlarr</link>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
<link xlink:href="https://sr.ht/~emersion/soju">soju</link>, a
|
<link xlink:href="https://sr.ht/~emersion/soju">soju</link>, a
|
||||||
|
|
|
@ -82,6 +82,8 @@ In addition to numerous new and upgraded packages, this release has the followin
|
||||||
|
|
||||||
- [postfixadmin](https://postfixadmin.sourceforge.io/), a web based virtual user administration interface for Postfix mail servers. Available as [postfixadmin](#opt-services.postfixadmin.enable).
|
- [postfixadmin](https://postfixadmin.sourceforge.io/), a web based virtual user administration interface for Postfix mail servers. Available as [postfixadmin](#opt-services.postfixadmin.enable).
|
||||||
|
|
||||||
|
- [prowlarr](https://wiki.servarr.com/prowlarr), an indexer manager/proxy built on the popular arr .net/reactjs base stack [services.prowlarr](#opt-services.prowlarr.enable).
|
||||||
|
|
||||||
- [soju](https://sr.ht/~emersion/soju), a user-friendly IRC bouncer. Available as [services.soju](options.html#opt-services.soju.enable).
|
- [soju](https://sr.ht/~emersion/soju), a user-friendly IRC bouncer. Available as [services.soju](options.html#opt-services.soju.enable).
|
||||||
|
|
||||||
- [nats](https://nats.io/), a high performance cloud and edge messaging system. Available as [services.nats](#opt-services.nats.enable).
|
- [nats](https://nats.io/), a high performance cloud and edge messaging system. Available as [services.nats](#opt-services.nats.enable).
|
||||||
|
|
|
@ -571,6 +571,7 @@
|
||||||
./services/misc/plex.nix
|
./services/misc/plex.nix
|
||||||
./services/misc/plikd.nix
|
./services/misc/plikd.nix
|
||||||
./services/misc/podgrab.nix
|
./services/misc/podgrab.nix
|
||||||
|
./services/misc/prowlarr.nix
|
||||||
./services/misc/tautulli.nix
|
./services/misc/tautulli.nix
|
||||||
./services/misc/pinnwand.nix
|
./services/misc/pinnwand.nix
|
||||||
./services/misc/pykms.nix
|
./services/misc/pykms.nix
|
||||||
|
|
41
nixos/modules/services/misc/prowlarr.nix
Normal file
41
nixos/modules/services/misc/prowlarr.nix
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.services.prowlarr;
|
||||||
|
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
services.prowlarr = {
|
||||||
|
enable = mkEnableOption "Prowlarr";
|
||||||
|
|
||||||
|
openFirewall = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "Open ports in the firewall for the Prowlarr web interface.";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
systemd.services.prowlarr = {
|
||||||
|
description = "Prowlarr";
|
||||||
|
after = [ "network.target" ];
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "simple";
|
||||||
|
DynamicUser = true;
|
||||||
|
StateDirectory = "prowlarr";
|
||||||
|
ExecStart = "${pkgs.prowlarr}/bin/Prowlarr -nobrowser -data=/var/lib/prowlarr";
|
||||||
|
Restart = "on-failure";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall = mkIf cfg.openFirewall {
|
||||||
|
allowedTCPPorts = [ 9696 ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user