Complete arr
suite
This commit is contained in:
parent
43f0f9b028
commit
30cc84fbda
3 changed files with 60 additions and 15 deletions
|
@ -30,7 +30,7 @@
|
|||
"atticd"
|
||||
"jellyfin"
|
||||
"matrix"
|
||||
"radarr"
|
||||
"arr"
|
||||
"zerotier"
|
||||
"mosh"
|
||||
]
|
||||
|
|
59
modules/arr/default.nix
Normal file
59
modules/arr/default.nix
Normal file
|
@ -0,0 +1,59 @@
|
|||
{ pkgs, lib, ... }:
|
||||
{
|
||||
services.radarr = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
services.sonarr = {
|
||||
enable = true;
|
||||
package =
|
||||
(builtins.getFlake "github:NixOS/nixpkgs/c80f6a7e10b39afcc1894e02ef785b1ad0b0d7e5")
|
||||
.legacyPackages.${pkgs.stdenv.system}.sonarr;
|
||||
};
|
||||
|
||||
services.prowlarr = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
systemd.services.prowlarr = {
|
||||
serviceConfig = {
|
||||
DynamicUser = lib.mkForce false;
|
||||
};
|
||||
};
|
||||
|
||||
users.users.radarr.extraGroups = [ "transmission" ];
|
||||
users.users.sonarr.extraGroups = [ "transmission" ];
|
||||
|
||||
environment.persistence."/persist".directories = [
|
||||
"/var/lib/radarr"
|
||||
"/var/lib/prowlarr"
|
||||
"/var/lib/sonarr"
|
||||
];
|
||||
|
||||
services.nginx.virtualHosts = {
|
||||
"radarr.sisko.wg.aciceri.dev" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "aciceri.dev";
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:7878"; # FIXME hardcoded port
|
||||
};
|
||||
serverAliases = [ "radarr.sisko.zt.aciceri.dev" ];
|
||||
};
|
||||
"prowlarr.sisko.wg.aciceri.dev" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "aciceri.dev";
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:9696"; # FIXME hardcoded port
|
||||
};
|
||||
serverAliases = [ "prowlarr.sisko.zt.aciceri.dev" ];
|
||||
};
|
||||
"sonarr.sisko.wg.aciceri.dev" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "aciceri.dev";
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:8989"; # FIXME hardcoded port
|
||||
};
|
||||
serverAliases = [ "sonarr.sisko.zt.aciceri.dev" ];
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
{
|
||||
services.radarr = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."radarr.sisko.wg.aciceri.dev" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "aciceri.dev";
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:7878"; # FIXME hardcoded port
|
||||
};
|
||||
serverAliases = [ "radarr.sisko.zt.aciceri.dev" ];
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue