diff --git a/modules/nixos/services/jellyfin/default.nix b/modules/nixos/services/jellyfin/default.nix index 251b5a2..a9a00a5 100755 --- a/modules/nixos/services/jellyfin/default.nix +++ b/modules/nixos/services/jellyfin/default.nix @@ -18,47 +18,47 @@ in openFirewall = true; enable = true; }; - caddy = { - virtualHosts = { - "${host}" = { - extraConfig = '' - redir /.well-known/carddav /remote.php/dav/ 301 - redir /.well-known/caldav /remote.php/dav/ 301 + # caddy = { + # virtualHosts = { + # "${host}" = { + # extraConfig = '' + # redir /.well-known/carddav /remote.php/dav/ 301 + # redir /.well-known/caldav /remote.php/dav/ 301 - reverse_proxy ${localhost}:${toString service.ports.port1} + # reverse_proxy ${localhost}:${toString service.ports.port1} - tls ${service.ssl.cert} ${service.ssl.key} - ''; - }; - }; - }; + # tls ${service.ssl.cert} ${service.ssl.key} + # ''; + # }; + # }; + # }; }; - # fileSystems = - # let - # settings = { - # fsType = "none"; - # options = [ - # "bind" - # ]; - # depends = [ - # ceres.storage0.mount - # ]; - # }; - # in - # { - # "/var/lib/${service.name}" = { - # device = service.paths.path0; - # } // settings; - # "/var/cache/${service.name}" = { - # device = "${service.paths.path1}"; - # } // settings; - # }; + fileSystems = + let + settings = { + fsType = "none"; + options = [ + "bind" + ]; + depends = [ + ceres.storage0.mount + ]; + }; + in + { + "/var/lib/${service.name}" = { + device = service.paths.path0; + } // settings; + "/var/cache/${service.name}" = { + device = "${service.paths.path1}"; + } // settings; + }; - # systemd.tmpfiles.rules = [ - # "Z ${service.paths.path0} 0755 ${user0} ${service.name} -" - # "Z ${service.paths.path1} 0755 ${user0} ${service.name} -" - # ]; + systemd.tmpfiles.rules = [ + "Z ${service.paths.path0} 0755 ${user0} ${service.name} -" + "Z ${service.paths.path1} 0755 ${user0} ${service.name} -" + ]; networking = { firewall = {