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