diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index 13f8462b..481d337a 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -66,6 +66,7 @@ blender.enable = true; kdenlive.enable = true; mpv.enable = true; + jellyfin.enable = true; }; }; hardware = { diff --git a/modules/desktop/media/default.nix b/modules/desktop/media/default.nix index fc9b5756..96f75420 100644 --- a/modules/desktop/media/default.nix +++ b/modules/desktop/media/default.nix @@ -7,5 +7,6 @@ ./kdenlive ./lmms ./mpv + ./jellyfin ]; } diff --git a/modules/desktop/media/jellyfin/default.nix b/modules/desktop/media/jellyfin/default.nix new file mode 100644 index 00000000..b4416098 --- /dev/null +++ b/modules/desktop/media/jellyfin/default.nix @@ -0,0 +1,21 @@ +{ + outputs, + options, + config, + lib, + pkgs, + ... +}: +with lib; let + cfg = config.modules.desktop.media.jellyfin; +in { + options.modules.desktop.media.jellyfin = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + jellyfin-media-player + ]; + }; +}