nixos/hosts/architect/jellyfin.nix

36 lines
788 B
Nix
Raw Normal View History

2021-07-13 09:53:22 +01:00
{ pkgs, ... }:
2021-11-25 11:42:32 +00:00
with import ./network.nix; {
disabledModules = [ "services/misc/jellyfin.nix" ];
imports = [ ./modules/jellyfin.nix ];
2021-07-07 13:13:19 +01:00
services = {
jellyfin = {
2021-11-25 11:42:32 +00:00
enable = true;
package = pkgs.unstable.jellyfin;
};
2021-07-07 13:13:19 +01:00
nginx.virtualHosts.${mediadomain} = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:8096";
extraConfig = ''
allow 10.0.0.0/24;
allow 10.3.0.0/24;
deny all;
'';
};
};
};
networking.extraHosts = ''
${architect-lan} ${mediadomain}
${architect-wg} ${mediadomain}
'';
2021-11-25 11:42:32 +00:00
users.groups.media.members = [ "jellyfin" ];
users.groups.video.members = [ "jellyfin" ];
users.groups.render.members = [ "jellyfin" ];
2021-07-07 13:13:19 +01:00
}