config/packages/nixpak/amberol/default.nix

43 lines
1 KiB
Nix
Raw Normal View History

2022-07-05 00:37:09 +03:00
{ mkNixPak, callPackage, lib, gnome, shared-mime-info }:
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
2022-07-05 00:37:09 +03:00
shared-mime-info
];
};
};
app.package = callPackage ./amberol.nix {};
};
}