added jellyfin config.

This commit is contained in:
Gabe Venberg 2024-09-03 22:51:02 -05:00
parent 0909ad3b26
commit fd79b1e2a2
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,20 @@
{
inputs,
config,
pkgs,
lib,
...
}: {
services.jellyfin = {
enable = true;
openFirewall = true;
dataDir = "/storage/jellyfin";
};
services.nginx.virtualHosts."media.venberg.xyz" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:8096";
};
};
}

View file

@ -18,6 +18,7 @@ inputs.nixpkgs.lib.nixosSystem {
../../configs/nixos/tailscale.nix
../../configs/nixos/sshd.nix
../../configs/nixos/secrets.nix
../../configs/nixos/jellyfin.nix
({
config,
pkgs,
@ -98,6 +99,7 @@ inputs.nixpkgs.lib.nixosSystem {
};
hardware.amdgpu.initrd.enable = true;
hardware.graphics.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];