40 lines
No EOL
1,012 B
Nix
40 lines
No EOL
1,012 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
config = {
|
|
dbus.policies = {
|
|
"${config.flatpak.appId}" = "own";
|
|
"org.freedesktop.DBus" = "talk";
|
|
"org.gtk.vfs.*" = "talk";
|
|
"org.gtk.vfs" = "talk";
|
|
"ca.desrt.dconf" = "talk";
|
|
"org.freedesktop.portal.*" = "talk";
|
|
"org.a11y.Bus" = "talk";
|
|
};
|
|
gpu.enable = lib.mkDefault true;
|
|
bubblewrap = {
|
|
network = lib.mkDefault false;
|
|
bind.rw = [
|
|
"$HOME/.cache/fontconfig"
|
|
"$HOME/.cache/mesa_shader_cache"
|
|
"$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY"
|
|
"$XDG_RUNTIME_DIR/at-spi/bus"
|
|
"$XDG_RUNTIME_DIR/gvfsd"
|
|
"$XDG_RUNTIME_DIR/pulse"
|
|
];
|
|
bind.ro = [
|
|
"/etc/fonts"
|
|
"$XDG_RUNTIME_DIR/doc"
|
|
"$HOME/.config/gtk-2.0"
|
|
"$HOME/.config/gtk-3.0"
|
|
"$HOME/.config/gtk-4.0"
|
|
];
|
|
env = {
|
|
XDG_DATA_DIRS = lib.makeSearchPath "share" [
|
|
pkgs.gnome.adwaita-icon-theme
|
|
pkgs.shared-mime-info
|
|
];
|
|
};
|
|
};
|
|
};
|
|
} |