From 5a0aff41dc26e25aa2664750f06663a64b97eb3c Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 21 Nov 2025 16:54:16 +0000 Subject: [PATCH] home01: add jellyfin --- modules/homelab/jellyfin.nix | 22 +++++++++++++++++++ .../hosts/homelab/home01/configuration.nix | 3 +++ 2 files changed, 25 insertions(+) create mode 100644 modules/homelab/jellyfin.nix diff --git a/modules/homelab/jellyfin.nix b/modules/homelab/jellyfin.nix new file mode 100644 index 00000000..787deee7 --- /dev/null +++ b/modules/homelab/jellyfin.nix @@ -0,0 +1,22 @@ +{ lib, ... }: + +{ + flake.modules.nixos.server-jellyfin = + { config, ... }: + let + cfg = config.homelab.services.jellyfin; + in + with lib; + { + options.homelab.services.jellyfin = { + enable = mkEnableOption "Enable jellyfin"; + }; + + config = mkIf cfg.enable { + services.jellyfin = { + enable = true; + openFirewall = true; + }; + }; + }; +} diff --git a/modules/hosts/homelab/home01/configuration.nix b/modules/hosts/homelab/home01/configuration.nix index c181c41f..3743f053 100644 --- a/modules/hosts/homelab/home01/configuration.nix +++ b/modules/hosts/homelab/home01/configuration.nix @@ -5,8 +5,11 @@ { pkgs, ... }: { imports = with inputs.self.modules.nixos; [ + server-jellyfin ]; + homelab.services.jellyfin.enable = true; + nix.settings = { auto-optimise-store = true;