From fd79b1e2a23630a8d14d0ef74148369340caa72b Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Tue, 3 Sep 2024 22:51:02 -0500 Subject: [PATCH] added jellyfin config. --- configs/nixos/jellyfin.nix | 20 ++++++++++++++++++++ hosts/cirrostratus/default.nix | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 configs/nixos/jellyfin.nix diff --git a/configs/nixos/jellyfin.nix b/configs/nixos/jellyfin.nix new file mode 100644 index 0000000..8116d1e --- /dev/null +++ b/configs/nixos/jellyfin.nix @@ -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"; + }; + }; +} diff --git a/hosts/cirrostratus/default.nix b/hosts/cirrostratus/default.nix index 5fed015..6df8bfa 100644 --- a/hosts/cirrostratus/default.nix +++ b/hosts/cirrostratus/default.nix @@ -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 = [ ... ];