layne: setup sonarr, radarr and jackett

This commit is contained in:
Adithya 2024-10-23 23:59:14 +05:30
parent 5012c1e163
commit ee8983e37d
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
9 changed files with 62 additions and 0 deletions

View file

@ -5,6 +5,7 @@ _: {
./services
./network.nix
./security.nix
./users.nix
];
nodeconfig = {

View file

@ -3,6 +3,8 @@ _: {
./jellyfin.nix
./transmission.nix
./radarr.nix
./sonarr.nix
./jackett.nix
../../../shared/prometheus-exporters.nix
../../../shared/promtail.nix
];

View 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" ];
}

View file

@ -45,6 +45,8 @@ in
];
jellyfin = {
enable = true;
user = "mediaserver";
group = "mediaserver";
dataDir = "/mnt/data/Jellyfin";
openFirewall = true;
};

View file

@ -8,6 +8,8 @@ _: {
radarr = {
enable = true;
dataDir = "/mnt/data/radarr";
user = "mediaserver";
group = "mediaserver";
};
};
systemd.services.radarr.unitConfig.RequiresMountsFor = [ "/mnt/data" ];

View 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" ];
}

View file

@ -13,6 +13,8 @@ in
};
};
transmission = {
user = "mediaserver";
group = "mediaserver";
enable = true;
package = pkgs.transmission_4;
downloadDirPermissions = "775";

18
hosts/layne/users.nix Normal file
View file

@ -0,0 +1,18 @@
_: {
users = {
users = {
mediaserver = {
group = "mediaserver";
uid = 899;
isSystemUser = true;
description = "Media Server user";
};
};
groups = {
mediaserver = {
gid = 899;
};
};
};
}

View file

@ -79,6 +79,8 @@ in
"transmission.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";
"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";
};
};