programs: vim, imagemagick: fix sandboxing to consider uncreated files

This commit is contained in:
Colin 2024-02-03 14:07:53 +00:00
parent 09f3bfc944
commit 111946eb1d
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
sandbox.method = "bwrap";
sandbox.wrapperType = "wrappedDerivation";
sandbox.whitelistPwd = true;
sandbox.autodetectCliPaths = true; #< arg formatting is complicated enough that this won't always work.
sandbox.autodetectCliPaths = "existingFileOrParent"; #< arg formatting is complicated enough that this won't always work.
packageUnwrapped = pkgs.imagemagick.override {
ghostscriptSupport = true;
};

View File

@ -88,7 +88,7 @@ in
sane.programs.neovim = {
sandbox.method = "bwrap";
sandbox.wrapperType = "wrappedDerivation";
sandbox.autodetectCliPaths = true;
sandbox.autodetectCliPaths = "existingFileOrParent";
# sandbox.whitelistPwd = true;
sandbox.extraHomePaths = [
# directories where i'm liable to `:e ../...`