1
0
Fork 0
nix-configuration/modules/nixos/apps/media/default.nix

38 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2024-12-06 18:04:47 +00:00
{
config,
lib,
namespace,
...
}:
2024-02-29 14:53:34 +00:00
let
2024-12-06 18:04:47 +00:00
cfg = config.${namespace}.apps.media;
2024-02-29 14:53:34 +00:00
in
{
options = {
2024-12-06 18:04:47 +00:00
${namespace}.apps.media = {
enable = lib.mkEnableOption "Enables media playback and editing apps.";
mixxx.enable = lib.mkEnableOption "Installs the Mixxx DJing software.";
};
};
2024-02-29 14:53:34 +00:00
2024-08-02 21:55:48 +00:00
config = lib.mkIf cfg.enable {
2024-12-06 18:04:47 +00:00
${namespace}.ui.flatpak = {
2024-06-25 18:13:15 +00:00
enable = true;
packages = [
"app.drey.EarTag"
"com.calibre_ebook.calibre"
"com.github.unrud.VideoDownloader"
"io.freetubeapp.FreeTube"
"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 18:04:47 +00:00
(lib.mkIf cfg.mixxx.enable "org.mixxx.Mixxx")
2024-08-17 02:35:49 +00:00
"org.videolan.VLC"
];
};
};
}