extract jellyfin to video-library role
1 file changed, 36 insertions(+), 0 deletions(-)
changed files
A system/roles/video-library.nix
@@ -0,0 +1,36 @@ +{ + config, + ... +}: +{ + age.secrets.cifs-jellyfin.file = ../../secrets/cifs-jellyfin.age; + + fileSystems."/srv/video" = { + device = "//u439959-sub5.your-storagebox.de/u439959-sub5"; + fsType = "smb3"; + options = [ + "x-systemd.automount" + "noauto" + "x-systemd.mount-timeout=5s" + "credentials=${config.age.secrets.cifs-jellyfin.path}" + "seal" + "multichannel" + "forceuid" + "forcegid" + "uid=jellyfin" + "gid=jellyfin" + ]; + }; + + services.jellyfin = { + enable = true; + }; + + services.caddy.virtualHosts = { + "jf.${config.networking.domain}" = { + extraConfig = '' + reverse_proxy localhost:8096 + ''; + }; + }; +}