nix-files/hosts/common/programs/imagemagick.nix
Colin 8f424dcd5a programs: sandboxing: link /etc into sandboxed programs
this is crucial for e.g. swaync, to find its resource files.
maybe a good idea to link *every* package directory which i also link
into /run/current-system.
2024-02-27 22:25:17 +00:00

14 lines
550 B
Nix

{ pkgs, ... }:
{
sane.programs.imagemagick = {
sandbox.method = "bwrap";
sandbox.wrapperType = "inplace"; # /etc/ImageMagick-7/delegates.xml refers to bins by absolute path
sandbox.whitelistPwd = true;
sandbox.autodetectCliPaths = "existingOrParent"; #< arg formatting is complicated enough that this won't always work.
packageUnwrapped = pkgs.imagemagick.override {
ghostscriptSupport = true;
};
# suggestedPrograms = [ "ghostscript" ]; #< XXX: needed? is `ghostscriptSupport = true` alone not enough??
};
}