Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/sandbox/nix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ function sandbox_setup_nix() {

# If there is a ~/.local/state/nix then mount it into the container
if [ -d "$HOME/.local/state/nix" ]; then
# Ensure parent of mounted state folder exists
# otherwise .local/state is root in the container
mkdir -p "$PERSIST_FOLDER/home/.local/state"

CONTAINER_RUN_ARGS+=(--volume="$HOME/.local/state/nix":"$HOME/.local/state/nix":ro)
fi

Expand Down