Skip to content

Commit

Permalink
Fix sandboxing support in NixOS
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate committed Dec 10, 2024
1 parent 75f9eec commit 6958205
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/state/shellscripts/bwrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6958205

Please sign in to comment.