{ config, pkgs, ... }: { sane.programs."sway-contrib.grimshot" = { packageUnwrapped = pkgs.sway-contrib.grimshot.override { # my `sway` is heavily patched to be cross compatible sway-unwrapped = config.sane.programs.sway.package.sway-unwrapped; }; suggestedPrograms = [ # runtime dependencies (grimshot is just a trivial shell script) "grim" "jq" "libnotify" # only if invoked with `-n` "slurp" # "sway" "wl-clipboard" ]; sandbox.method = "bwrap"; sandbox.wrapperType = "wrappedDerivation"; sandbox.whitelistWayland = true; sandbox.whitelistDbus = [ "user" ]; sandbox.autodetectCliPaths = "existingFileOrParent"; }; }