mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-12-04 11:36:20 +01:00
24 lines
501 B
Nix
24 lines
501 B
Nix
{
|
|
load,
|
|
mkAppPolicy,
|
|
renderBind,
|
|
...
|
|
}:
|
|
let
|
|
app = load "mpv";
|
|
in
|
|
mkAppPolicy "mpv" {
|
|
network = "pasta";
|
|
media = false;
|
|
pulse = true;
|
|
x11 = false;
|
|
mpris = true;
|
|
notifications = false;
|
|
extraChecks = {
|
|
fileChooser = app.portalGroups.fileChooser;
|
|
openUri = app.portalGroups.openUri;
|
|
# The flatpak shim hides ~/.cache, so the musicfox cache must be bound back.
|
|
musicfoxCache = builtins.elem "$HOME/.cache/go-musicfox" (map renderBind app.bubblewrap.bind.ro);
|
|
};
|
|
}
|