From c84992a5c5d112a3f9dc795c00d8660c92d6b7ab Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Thu, 8 Feb 2024 13:04:25 +0400 Subject: [PATCH] jellyfin media player --- hosts/sakotop/configuration.nix | 1 + modules/desktop/media/default.nix | 1 + modules/desktop/media/jellyfin/default.nix | 21 +++++++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 modules/desktop/media/jellyfin/default.nix 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 + ]; + }; +}