From 872c780300e642de60fb245c88f93122daa5f92a Mon Sep 17 00:00:00 2001 From: sefidel Date: Mon, 9 Dec 2024 07:32:08 +0900 Subject: feat(modules): add jellyfin --- modules/services/jellyfin.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 modules/services/jellyfin.nix (limited to 'modules/services/jellyfin.nix') diff --git a/modules/services/jellyfin.nix b/modules/services/jellyfin.nix new file mode 100644 index 0000000..1936a54 --- /dev/null +++ b/modules/services/jellyfin.nix @@ -0,0 +1,26 @@ +{ config, lib, pkgs, ... }: + +with lib; +let + cfg = config.modules.services.jellyfin; +in +{ + options.modules.services.jellyfin = { + enable = mkEnableOption ""; + + dataDir = mkOption { type = types.str; }; + }; + + config = mkIf cfg.enable { + services.jellyfin = { + enable = true; + + dataDir = cfg.dataDir; + }; + + environment.systemPackages = with pkgs; [ + jellyfin-web + jellyfin-ffmpeg + ]; + }; +} -- cgit 1.4.1