1
0
Fork 0

Flatpak: remove bindfs, add Jellyfin Desktop Player

This commit is contained in:
Aires 2024-07-12 17:47:09 -04:00
parent 5fe661b025
commit 8127db2f19
2 changed files with 1 additions and 37 deletions

View file

@ -14,6 +14,7 @@ with lib;
enable = true; enable = true;
packages = [ packages = [
"com.calibre_ebook.calibre" "com.calibre_ebook.calibre"
"com.github.iwalton3.jellyfin-media-player"
"com.github.unrud.VideoDownloader" "com.github.unrud.VideoDownloader"
"io.freetubeapp.FreeTube" "io.freetubeapp.FreeTube"
"io.github.celluloid_player.Celluloid" "io.github.celluloid_player.Celluloid"

View file

@ -51,42 +51,5 @@ with lib;
# Install base Flatpaks. For details, see https://github.com/gmodena/nix-flatpak # Install base Flatpaks. For details, see https://github.com/gmodena/nix-flatpak
packages = cfg.packages; packages = cfg.packages;
}; };
# Workaround for getting Flatpak apps to use system fonts, icons, and cursors
# For details (and source), see https://github.com/NixOS/nixpkgs/issues/119433#issuecomment-1767513263
# NOTE: If fonts in Flatpaks appear incorrect (like squares), run this command to regenerate the font cache:
# flatpak list --columns=application | xargs -I %s -- flatpak run --command=fc-cache %s -f -v
system.fsPackages = [ pkgs.bindfs ];
fileSystems =
let
mkRoSymBind = path: {
device = path;
fsType = "fuse.bindfs";
options = [
"ro"
"resolve-symlinks"
"x-gvfs-hide"
];
};
aggregatedIcons = pkgs.buildEnv {
name = "system-icons";
paths = with pkgs; [
(lib.mkIf config.aux.system.ui.desktops.gnome.enable gnome-themes-extra)
(lib.mkIf config.aux.system.ui.desktops.kde.enable kdePackages.breeze-icons)
papirus-icon-theme
qogir-icon-theme
];
pathsToLink = [ "/share/icons" ];
};
aggregatedFonts = pkgs.buildEnv {
name = "system-fonts";
paths = config.fonts.packages;
pathsToLink = [ "/share/fonts" ];
};
in
{
"/usr/share/icons" = mkRoSymBind "${aggregatedIcons}/share/icons";
"/usr/local/share/fonts" = mkRoSymBind "${aggregatedFonts}/share/fonts";
};
}; };
} }