Skip to content

Commit

Permalink
layne: setup sonarr, radarr and jackett
Browse files Browse the repository at this point in the history
  • Loading branch information
adtya committed Oct 23, 2024
1 parent 5012c1e commit ee8983e
Show file tree
Hide file tree
Showing 9 changed files with 62 additions and 0 deletions.
1 change: 1 addition & 0 deletions hosts/layne/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ _: {
./services
./network.nix
./security.nix
./users.nix
];

nodeconfig = {
Expand Down
2 changes: 2 additions & 0 deletions hosts/layne/services/apps/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ _: {
./jellyfin.nix
./transmission.nix
./radarr.nix
./sonarr.nix
./jackett.nix
../../../shared/prometheus-exporters.nix
../../../shared/promtail.nix
];
Expand Down
17 changes: 17 additions & 0 deletions hosts/layne/services/apps/jackett.nix
Original file line number Diff line number Diff line change
@@ -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" ];
}
2 changes: 2 additions & 0 deletions hosts/layne/services/apps/jellyfin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ in
];
jellyfin = {
enable = true;
user = "mediaserver";
group = "mediaserver";
dataDir = "/mnt/data/Jellyfin";
openFirewall = true;
};
Expand Down
2 changes: 2 additions & 0 deletions hosts/layne/services/apps/radarr.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ _: {
radarr = {
enable = true;
dataDir = "/mnt/data/radarr";
user = "mediaserver";
group = "mediaserver";
};
};
systemd.services.radarr.unitConfig.RequiresMountsFor = [ "/mnt/data" ];
Expand Down
16 changes: 16 additions & 0 deletions hosts/layne/services/apps/sonarr.nix
Original file line number Diff line number Diff line change
@@ -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" ];
}
2 changes: 2 additions & 0 deletions hosts/layne/services/apps/transmission.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ in
};
};
transmission = {
user = "mediaserver";
group = "mediaserver";
enable = true;
package = pkgs.transmission_4;
downloadDirPermissions = "775";
Expand Down
18 changes: 18 additions & 0 deletions hosts/layne/users.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
_: {
users = {
users = {
mediaserver = {
group = "mediaserver";
uid = 899;
isSystemUser = true;
description = "Media Server user";
};
};

groups = {
mediaserver = {
gid = 899;
};
};
};
}
2 changes: 2 additions & 0 deletions hosts/rico0/services/apps/blocky.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};
};
Expand Down

0 comments on commit ee8983e

Please sign in to comment.