home01: add jellyfin
Some checks are pending
/ check (push) Waiting to run

This commit is contained in:
Oliver Davies 2025-11-21 16:54:16 +00:00
parent dd466c291c
commit 5a0aff41dc
2 changed files with 25 additions and 0 deletions

View file

@ -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;
};
};
};
}

View file

@ -5,8 +5,11 @@
{ pkgs, ... }:
{
imports = with inputs.self.modules.nixos; [
server-jellyfin
];
homelab.services.jellyfin.enable = true;
nix.settings = {
auto-optimise-store = true;