54 lines
898 B
Nix
54 lines
898 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
inputs,
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
{
|
|
options = {
|
|
apps.video = {
|
|
base.enable = lib.mkEnableOption "enable basic video";
|
|
editing.enable = lib.mkEnableOption "enable video editing";
|
|
media.enable = lib.mkEnableOption "enable video media";
|
|
};
|
|
};
|
|
|
|
config = {
|
|
environment.systemPackages =
|
|
with pkgs;
|
|
[ ]
|
|
++ (
|
|
if config.apps.video.base.enable then
|
|
|
|
[
|
|
mpv
|
|
yt-dlp
|
|
]
|
|
else
|
|
[ ]
|
|
)
|
|
++ (
|
|
if config.apps.video.editing.enable then
|
|
|
|
[
|
|
kdePackages.kdenlive
|
|
kdePackages.qtwebsockets
|
|
obs-studio
|
|
]
|
|
else
|
|
[ ]
|
|
)
|
|
++ (
|
|
if config.apps.video.media.enable then
|
|
|
|
[
|
|
jellyfin-desktop
|
|
pipeline
|
|
]
|
|
else
|
|
[ ]
|
|
);
|
|
};
|
|
}
|