{ 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 shared-mime-info ]; }; }; app.package = callPackage ./amberol.nix {}; }; }