Add jellyfin
Some checks failed
Run nix flake check / flake-check (push) Failing after 4m36s
Periodic flake update / flake-update (push) Successful in 1m29s

This commit is contained in:
2024-12-22 04:33:00 +01:00
parent 11508a90e1
commit 79b6598d0d
8 changed files with 203 additions and 61 deletions

View File

@@ -0,0 +1,32 @@
{ pkgs, ... }:
{
services.jellyfin = {
enable = true;
};
environment.systemPackages = with pkgs; [
nfs-utils
];
services.rpcbind.enable = true;
systemd.mounts = [
{
type = "nfs";
mountConfig = {
Options = "ro,soft,noatime";
};
what = "nas.home.2rjus.net:/mnt/hdd-pool/media";
where = "/mnt/nas/media";
}
];
systemd.automounts = [
{
wantedBy = [ "multi-user.target" ];
automountConfig = {
TimeoutIdleSec = "5min";
};
where = "/mnt/nas/media";
}
];
}

View File

@@ -5,9 +5,8 @@
alertmanager = {
enable = true;
configuration = {
global =
{
};
global = {
};
route = {
receiver = "webhook_gunter";
group_wait = "30s";
@@ -171,6 +170,14 @@
}
];
}
{
job_name = "jellyfin";
static_configs = [
{
targets = [ "jelly01.home.2rjus.net:8096" ];
}
];
}
];
};
}

View File

@@ -1,7 +1,7 @@
$ORIGIN home.2rjus.net.
$TTL 1800
@ IN SOA ns1.home.2rjus.net. admin.test.2rjus.net. (
2044 ; serial number
2045 ; serial number
3600 ; refresh
900 ; retry
1209600 ; expire
@@ -53,6 +53,11 @@ ns4 IN A 10.69.13.8
ha1 IN A 10.69.13.9
nixos-test1 IN A 10.69.13.10
http-proxy IN A 10.69.13.11
ca IN A 10.69.13.12
monitoring01 IN A 10.69.13.13
jelly01 IN A 10.69.13.14
; http-proxy cnames
nzbget IN CNAME http-proxy
radarr IN CNAME http-proxy
sonarr IN CNAME http-proxy
@@ -61,8 +66,7 @@ z2m IN CNAME http-proxy
grafana IN CNAME http-proxy
prometheus IN CNAME http-proxy
alertmanager IN CNAME http-proxy
ca IN A 10.69.13.12
monitoring01 IN A 10.69.13.13
jelly IN CNAME http-proxy
; 22_WLAN
unifi-ctrl IN A 10.69.22.5