mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-08 06:30:18 +02:00
started refactoring
This commit is contained in:
parent
729050b005
commit
f61d2eedef
36 changed files with 12 additions and 10 deletions
87
hosts/sisyphe/features/multimedia/arr-suite.nix
Normal file
87
hosts/sisyphe/features/multimedia/arr-suite.nix
Normal file
|
@ -0,0 +1,87 @@
|
|||
{
|
||||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.arrSuite;
|
||||
in
|
||||
{
|
||||
services.sonarr = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
services.radarr = {
|
||||
enable = true;
|
||||
group = "multimedia";
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
services.prowlarr = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
services.jellyseerr = {
|
||||
openFirewall = true;
|
||||
enable = true;
|
||||
};
|
||||
|
||||
services.bazarr = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
/*
|
||||
#TODO: create duplicated instances of Sonarr.
|
||||
systemd.services."sonarrAnime" = {
|
||||
enable = true;
|
||||
description = "Duplicated Sonarr instance, for animes";
|
||||
after = [
|
||||
"syslog.target"
|
||||
"network.target"
|
||||
];
|
||||
|
||||
path = [ pkgs.sonarr ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
User = "sonarr";
|
||||
ExecStart = "${pkgs.sonarr}/bin/Sonarr -nobrowser -data=/var/lib/sonarrAnime";
|
||||
TimeoutStopSec = "20";
|
||||
KillMode = "process";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
};
|
||||
*/
|
||||
|
||||
services.caddy.virtualHosts = {
|
||||
"http://radarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :7878
|
||||
'';
|
||||
|
||||
"http://sonarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :8989
|
||||
'';
|
||||
|
||||
"http://sonarr-anime.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :8999
|
||||
'';
|
||||
|
||||
"http://prowlarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :9696
|
||||
'';
|
||||
|
||||
"http://katflix.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :5055
|
||||
'';
|
||||
|
||||
"http://bazarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :6767
|
||||
'';
|
||||
|
||||
"http://bazarr-anime.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :6777
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue