config/packages/nixpak/amberol/default.nix

43 lines
No EOL
1 KiB
Nix

{ mkNixPak, callPackage, lib, gnome }:
mkNixPak {
config = {
dbus.policies = {
"org.freedesktop.DBus" = "talk";
"org.gtk.vfs.*" = "talk";
"org.gtk.vfs" = "talk";
"io.bassi.Amberol" = "own";
"org.mpris.MediaPlayer2.*" = "own";
"org.freedesktop.portal.*" = "talk";
"ca.desrt.dconf" = "talk";
};
flatpak.appId = "io.bassi.Amberol";
bubblewrap = {
network = false;
bind.rw = [
"$HOME/.cache/amberol"
"$HOME/.cache/fontconfig"
"$XDG_RUNTIME_DIR/gvfsd"
"$XDG_RUNTIME_DIR/pulse"
"$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY"
];
bind.ro = [
"/etc/fonts"
"$XDG_RUNTIME_DIR/doc"
"/run/opengl-driver"
"/sys/dev/char"
"/sys/devices/pci0000:00"
];
bind.dev = [
"/dev/dri"
];
env = {
XDG_DATA_DIRS = lib.makeSearchPath "share" [
gnome.adwaita-icon-theme
];
GTK_USE_PORTAL = "1";
};
};
app.package = callPackage ./amberol.nix {};
};
}