layne: setup sonarr, radarr and jackett
This commit is contained in:
parent
5012c1e163
commit
ee8983e37d
9 changed files with 62 additions and 0 deletions
|
@ -5,6 +5,7 @@ _: {
|
||||||
./services
|
./services
|
||||||
./network.nix
|
./network.nix
|
||||||
./security.nix
|
./security.nix
|
||||||
|
./users.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nodeconfig = {
|
nodeconfig = {
|
||||||
|
|
|
@ -3,6 +3,8 @@ _: {
|
||||||
./jellyfin.nix
|
./jellyfin.nix
|
||||||
./transmission.nix
|
./transmission.nix
|
||||||
./radarr.nix
|
./radarr.nix
|
||||||
|
./sonarr.nix
|
||||||
|
./jackett.nix
|
||||||
../../../shared/prometheus-exporters.nix
|
../../../shared/prometheus-exporters.nix
|
||||||
../../../shared/promtail.nix
|
../../../shared/promtail.nix
|
||||||
];
|
];
|
||||||
|
|
17
hosts/layne/services/apps/jackett.nix
Normal file
17
hosts/layne/services/apps/jackett.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
_: {
|
||||||
|
services = {
|
||||||
|
caddy.virtualHosts."jackett.labs.adtya.xyz" = {
|
||||||
|
extraConfig = ''
|
||||||
|
reverse_proxy 127.0.0.1:9117
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
jackett = {
|
||||||
|
enable = true;
|
||||||
|
user = "mediaserver";
|
||||||
|
group = "mediaserver";
|
||||||
|
dataDir = "/mnt/data/jackett";
|
||||||
|
port = 9117;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
systemd.services.radarr.unitConfig.RequiresMountsFor = [ "/mnt/data" ];
|
||||||
|
}
|
|
@ -45,6 +45,8 @@ in
|
||||||
];
|
];
|
||||||
jellyfin = {
|
jellyfin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
user = "mediaserver";
|
||||||
|
group = "mediaserver";
|
||||||
dataDir = "/mnt/data/Jellyfin";
|
dataDir = "/mnt/data/Jellyfin";
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,6 +8,8 @@ _: {
|
||||||
radarr = {
|
radarr = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dataDir = "/mnt/data/radarr";
|
dataDir = "/mnt/data/radarr";
|
||||||
|
user = "mediaserver";
|
||||||
|
group = "mediaserver";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
systemd.services.radarr.unitConfig.RequiresMountsFor = [ "/mnt/data" ];
|
systemd.services.radarr.unitConfig.RequiresMountsFor = [ "/mnt/data" ];
|
||||||
|
|
16
hosts/layne/services/apps/sonarr.nix
Normal file
16
hosts/layne/services/apps/sonarr.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
_: {
|
||||||
|
services = {
|
||||||
|
caddy.virtualHosts."sonarr.labs.adtya.xyz" = {
|
||||||
|
extraConfig = ''
|
||||||
|
reverse_proxy 127.0.0.1:8989
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
sonarr = {
|
||||||
|
enable = true;
|
||||||
|
dataDir = "/mnt/data/sonarr";
|
||||||
|
user = "mediaserver";
|
||||||
|
group = "mediaserver";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
systemd.services.radarr.unitConfig.RequiresMountsFor = [ "/mnt/data" ];
|
||||||
|
}
|
|
@ -13,6 +13,8 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
transmission = {
|
transmission = {
|
||||||
|
user = "mediaserver";
|
||||||
|
group = "mediaserver";
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.transmission_4;
|
package = pkgs.transmission_4;
|
||||||
downloadDirPermissions = "775";
|
downloadDirPermissions = "775";
|
||||||
|
|
18
hosts/layne/users.nix
Normal file
18
hosts/layne/users.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
_: {
|
||||||
|
users = {
|
||||||
|
users = {
|
||||||
|
mediaserver = {
|
||||||
|
group = "mediaserver";
|
||||||
|
uid = 899;
|
||||||
|
isSystemUser = true;
|
||||||
|
description = "Media Server user";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
groups = {
|
||||||
|
mediaserver = {
|
||||||
|
gid = 899;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -79,6 +79,8 @@ in
|
||||||
"transmission.labs.adtya.xyz" = "10.10.10.14,fd7c:585c:c4ae::14";
|
"transmission.labs.adtya.xyz" = "10.10.10.14,fd7c:585c:c4ae::14";
|
||||||
"jellyfin.labs.adtya.xyz" = "10.10.10.14,fd7c:585c:c4ae::14";
|
"jellyfin.labs.adtya.xyz" = "10.10.10.14,fd7c:585c:c4ae::14";
|
||||||
"radarr.labs.adtya.xyz" = "10.10.10.14,fd7c:585c:c4ae::14";
|
"radarr.labs.adtya.xyz" = "10.10.10.14,fd7c:585c:c4ae::14";
|
||||||
|
"sonarr.labs.adtya.xyz" = "10.10.10.14,fd7c:585c:c4ae::14";
|
||||||
|
"jackett.labs.adtya.xyz" = "10.10.10.14,fd7c:585c:c4ae::14";
|
||||||
"jellyfin.local.adtya.xyz" = "192.168.1.14";
|
"jellyfin.local.adtya.xyz" = "192.168.1.14";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue