cargo,rust-analyzer: sandbox with bunpen
This commit is contained in:
@@ -440,7 +440,7 @@ in
|
|||||||
"cacert.unbundled".sandbox.enable = false; #< data only
|
"cacert.unbundled".sandbox.enable = false; #< data only
|
||||||
|
|
||||||
cargo.persist.byStore.plaintext = [ ".cargo" ];
|
cargo.persist.byStore.plaintext = [ ".cargo" ];
|
||||||
cargo.sandbox.method = "bwrap"; # probably this is too restrictive; i'm sandboxing it for rust-analyzer / neovim LSP
|
cargo.sandbox.method = "bunpen"; # probably this is too restrictive; i'm sandboxing it for rust-analyzer / neovim LSP
|
||||||
cargo.sandbox.whitelistPwd = true;
|
cargo.sandbox.whitelistPwd = true;
|
||||||
cargo.sandbox.net = "all";
|
cargo.sandbox.net = "all";
|
||||||
cargo.sandbox.extraHomePaths = [ "dev" "ref" ];
|
cargo.sandbox.extraHomePaths = [ "dev" "ref" ];
|
||||||
@@ -1064,7 +1064,7 @@ in
|
|||||||
rsync.sandbox.net = "clearnet";
|
rsync.sandbox.net = "clearnet";
|
||||||
rsync.sandbox.autodetectCliPaths = "existingOrParent";
|
rsync.sandbox.autodetectCliPaths = "existingOrParent";
|
||||||
|
|
||||||
rust-analyzer.sandbox.method = "bwrap";
|
rust-analyzer.sandbox.method = "bunpen";
|
||||||
rust-analyzer.sandbox.whitelistPwd = true;
|
rust-analyzer.sandbox.whitelistPwd = true;
|
||||||
rust-analyzer.suggestedPrograms = [
|
rust-analyzer.suggestedPrograms = [
|
||||||
"cargo"
|
"cargo"
|
||||||
|
Reference in New Issue
Block a user