Sonarr: Difference between revisions

From NixOS Wiki
imported>Makefu
cleanup formatting
Klinger (talk | contribs)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Sonarr can be installed as a service on NixOS in `configuration.nix`.
[https://sonarr.tv/ Sonarr] is a PVR for Usenet and BitTorrent users. It can monitor multiple RSS feeds for new episodes of your favorite shows and will grab, sort and rename them. It can also be configured to automatically upgrade the quality of files already downloaded when a better quality format becomes available.


A basic setup is given as the following.
= Setup =
Sonarr is best installed as a service on NixOS in your configuration.nix.
 
A basic install can be done using the following options:


<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>
Line 10: Line 13:
</syntaxHighlight>
</syntaxHighlight>


<code>openFirewall</code> opens the port <code>8989</code> on the host firewall.
The <code>openFirewall</code> option is used to open port <code>8989</code> on the host firewall.
 
= Further configuration =
Sonarr can be further configured using NixOS options.
 
<syntaxHighlight lang=nix>
services.sonarr = {
  ...
  user = "user";
  group = "group";
  dataDir = "path/to/directory"
};
</syntaxHighlight>
 
Both the <code>user</code> and <code>group</code> options are used to specify which user and group is used to run Sonarr. The <code>dataDir</code> option specifies the directory where Sonarr stores its data files, and can be set to a custom location. When setting the <code>dataDir</code> option, be careful of permissions as a specified user still needs the correct read/write permissions in this directory.
 
[[Category:Applications]]
[[Category:Server]]

Latest revision as of 18:02, 19 April 2024

Sonarr is a PVR for Usenet and BitTorrent users. It can monitor multiple RSS feeds for new episodes of your favorite shows and will grab, sort and rename them. It can also be configured to automatically upgrade the quality of files already downloaded when a better quality format becomes available.

Setup

Sonarr is best installed as a service on NixOS in your configuration.nix.

A basic install can be done using the following options:

services.sonarr = {
  enable = true;
  openFirewall = true;
};

The openFirewall option is used to open port 8989 on the host firewall.

Further configuration

Sonarr can be further configured using NixOS options.

services.sonarr = {
  ...
  user = "user";
  group = "group";
  dataDir = "path/to/directory"
};

Both the user and group options are used to specify which user and group is used to run Sonarr. The dataDir option specifies the directory where Sonarr stores its data files, and can be set to a custom location. When setting the dataDir option, be careful of permissions as a specified user still needs the correct read/write permissions in this directory.