diff options
author | sefidel <contact@sefidel.net> | 2024-12-09 07:32:08 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2024-12-22 13:21:38 +0900 |
commit | 872c780300e642de60fb245c88f93122daa5f92a (patch) | |
tree | abc8cfda306b8e01ea91895c42c03c0265c96f01 /modules/services/jellyfin.nix | |
parent | 0f7fdc3d16c8adad8d7d3c073fc49a57b33a9831 (diff) | |
download | nixrc-872c780300e642de60fb245c88f93122daa5f92a.tar.gz nixrc-872c780300e642de60fb245c88f93122daa5f92a.zip |
feat(modules): add jellyfin
Diffstat (limited to 'modules/services/jellyfin.nix')
-rw-r--r-- | modules/services/jellyfin.nix | 26 |
1 files changed, 26 insertions, 0 deletions
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 + ]; + }; +} |