nixos/modules/desktop/media/jellyfin/default.nix

22 lines
324 B
Nix
Raw Normal View History

2024-02-08 13:04:25 +04:00
{
outputs,
options,
config,
lib,
pkgs,
...
}:
2024-08-01 16:24:09 +04:00
let
2024-02-08 13:04:25 +04:00
cfg = config.modules.desktop.media.jellyfin;
in {
options.modules.desktop.media.jellyfin = {
2024-08-01 16:24:09 +04:00
enable = lib.mkEnableOption false;
2024-02-08 13:04:25 +04:00
};
2024-08-01 16:24:09 +04:00
config = lib.mkIf cfg.enable {
2024-02-08 13:04:25 +04:00
users.users.sako.packages = with pkgs; [
jellyfin-media-player
];
};
}