nix-config/home/features/desktop/common/flatpak.nix
GHOSCHT 29e910e061
Switch to nix-flatpak
required by stylix, previously used declarative-flatpak
2025-01-09 22:00:12 +01:00

32 lines
779 B
Nix

{ inputs, ... }: {
imports = [ inputs.nix-flatpak.homeManagerModules.nix-flatpak ];
services.flatpak = {
uninstallUnmanaged = true;
packages = [
"md.obsidian.Obsidian"
"com.github.iwalton3.jellyfin-media-player"
"com.github.tchx84.Flatseal"
];
overrides = {
global = {
Context = {
sockets = [ "wayland" "!x11" "!fallback-x11" ];
filesystems = [
"~/.local/share/fonts:ro"
"~/.icons:ro"
"/nix/store:ro"
];
};
};
# "com.github.iwalton3.jellyfin-media-player".Context = {
# sockets = [
# "!wayland"
# "x11"
# ];
# devices = [
# "dri" # GPU acceleration
# ];
# };
};
};
}