From 6958205cd8932f8fba5ee244b71587c7f55b75a0 Mon Sep 17 00:00:00 2001 From: Kate Date: Tue, 10 Dec 2024 17:43:26 +0000 Subject: [PATCH] Fix sandboxing support in NixOS --- src/state/shellscripts/bwrap.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/state/shellscripts/bwrap.sh b/src/state/shellscripts/bwrap.sh index 7b45fc87750..d570a72e930 100644 --- a/src/state/shellscripts/bwrap.sh +++ b/src/state/shellscripts/bwrap.sh @@ -68,6 +68,10 @@ for dir in /*; do *) add_sys_mounts "$dir";; esac done +# NOTE: This is required for NixOS (see https://github.com/NixOS/nixpkgs/pull/363770) +if [ -d /run/current-system/sw ]; then + add_sys_mounts /run/current-system/sw +fi mount_linked_cache() { local l_cache=$1