about summary refs log tree commit diff
path: root/modules/services/jellyfin.nix
blob: 1936a54eecf0bac33fc74990ad3edffa3c68a8b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
    ];
  };
}