# debugging tips: # - if element opens but does not render: # - `element-desktop --disable-gpu --in-process-gpu` # - # - `rm -rf ~/.config/Element/GPUCache` # - { pkgs, ... }: { sane.programs.element-desktop = { packageUnwrapped = pkgs.element-desktop.override { # use pre-build electron because otherwise it takes 4 hrs to build from source. electron = pkgs.electron-bin; }; suggestedPrograms = [ "gnome-keyring" "xwayland" ]; sandbox.method = "bwrap"; sandbox.net = "clearnet"; sandbox.whitelistAudio = true; sandbox.whitelistDbus = [ "user" ]; # notifications sandbox.whitelistDri = true; sandbox.whitelistWayland = true; sandbox.extraHomePaths = [ "Music" "Pictures/albums" "Pictures/cat" "Pictures/from" "Pictures/Photos" "Pictures/Screenshots" "Pictures/servo-macros" "Videos/local" "Videos/servo" "tmp" ]; # creds/session keys, etc persist.byStore.private = [ ".config/Element" ]; }; }