2024-12-06 16:46:10 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
namespace,
|
|
|
|
...
|
|
|
|
}:
|
2024-02-29 14:53:34 +00:00
|
|
|
|
2024-05-07 22:02:59 +00:00
|
|
|
let
|
2024-12-06 16:46:10 +00:00
|
|
|
cfg = config.${namespace}.apps.media;
|
2024-02-29 14:53:34 +00:00
|
|
|
in
|
|
|
|
{
|
2024-05-07 22:02:59 +00:00
|
|
|
options = {
|
2024-12-06 16:46:10 +00:00
|
|
|
${namespace}.apps.media = {
|
2024-12-06 16:16:58 +00:00
|
|
|
enable = lib.mkEnableOption "Enables media playback and editing apps.";
|
|
|
|
mixxx.enable = lib.mkEnableOption "Installs the Mixxx DJing software.";
|
|
|
|
};
|
2024-05-07 22:02:59 +00:00
|
|
|
};
|
2024-02-29 14:53:34 +00:00
|
|
|
|
2024-08-02 21:55:48 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
2024-12-06 16:46:10 +00:00
|
|
|
${namespace}.ui.flatpak = {
|
2024-06-25 18:13:15 +00:00
|
|
|
enable = true;
|
2024-05-07 22:02:59 +00:00
|
|
|
packages = [
|
2024-08-03 15:43:18 +00:00
|
|
|
"app.drey.EarTag"
|
2024-05-07 22:02:59 +00:00
|
|
|
"com.calibre_ebook.calibre"
|
|
|
|
"com.github.unrud.VideoDownloader"
|
2024-07-02 22:15:37 +00:00
|
|
|
"io.freetubeapp.FreeTube"
|
2024-05-07 22:02:59 +00:00
|
|
|
"org.kde.krita"
|
|
|
|
"org.kde.KStyle.Adwaita//5.15-23.08" # Retrieved from https://docs.flatpak.org/en/latest/desktop-integration.html
|
|
|
|
"org.kde.KStyle.Adwaita//6.6"
|
|
|
|
"org.kde.WaylandDecoration.QAdwaitaDecorations//5.15-23.08" # Replaced deprecated QGnomePlatform https://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications
|
|
|
|
"org.kde.WaylandDecoration.QAdwaitaDecorations//6.6"
|
2024-12-06 16:16:58 +00:00
|
|
|
(lib.mkIf cfg.mixxx.enable "org.mixxx.Mixxx")
|
2024-08-17 02:35:49 +00:00
|
|
|
"org.videolan.VLC"
|
2024-05-07 22:02:59 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|