Skip to content

Commit

Permalink
tiny1: add readarr
Browse files Browse the repository at this point in the history
  • Loading branch information
hyshka committed Nov 23, 2024
1 parent a81d01e commit bf0609e
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hosts/tiny1/services/media/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
uid = 13004;
group = "mediacenter";
};
readarr = {
isSystemUser = true;
uid = 13005;
group = "mediacenter";
};
jellyfin = {
isSystemUser = true;
uid = 13006;
Expand Down
58 changes: 58 additions & 0 deletions hosts/tiny1/services/media/docker-compose.nix
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,64 @@
];
};

systemd.tmpfiles.settings."readarr" = {
"/home/hyshka/media/readarr-config" = {
d = {
group = "mediacenter";
mode = "0755";
user = "readarr";
};
};
"/mnt/storage/mediacenter/media/books" = {
d = {
group = "mediacenter";
mode = "0755";
user = "hyshka";
};
};
};
virtualisation.oci-containers.containers."readarr" = {
image = "lscr.io/linuxserver/readarr:develop";
environment = {
"PGID" = "13000";
"PUID" = "13005";
"TZ" = "America/Edmonton";
"UMASK" = "002";
};
volumes = [
"/home/hyshka/media/readarr-config:/config:rw"
"/mnt/storage/mediacenter:/data:rw"
];
ports = [
"8787:8787/tcp"
];
log-driver = "journald";
extraOptions = [
"--network-alias=readarr"
"--network=media_default"
];
};
systemd.services."docker-readarr" = {
serviceConfig = {
Restart = lib.mkOverride 90 "always";
RestartMaxDelaySec = lib.mkOverride 90 "1m";
RestartSec = lib.mkOverride 90 "100ms";
RestartSteps = lib.mkOverride 90 9;
};
after = [
"docker-network-media_default.service"
];
requires = [
"docker-network-media_default.service"
];
partOf = [
"docker-compose-media-root.target"
];
wantedBy = [
"docker-compose-media-root.target"
];
};

virtualisation.oci-containers.containers."recyclarr" = {
image = "ghcr.io/recyclarr/recyclarr";
environment = {
Expand Down

0 comments on commit bf0609e

Please sign in to comment.