Skip to content

Conversation

@samrose
Copy link
Collaborator

@samrose samrose commented Nov 20, 2025

trying to support this flow basically

mount /dev/xvdc /mnt/nix-temp

# Copy existing Nix installation to temp volume first
rsync -aHAXS /nix/ /mnt/nix-temp/

# Now bind mount over the original
mount --bind /mnt/nix-temp /nix

# Do all nix operations (they'll use the temp volume)
nix profile install ...

# Stop daemon before unmounting
systemctl stop nix-daemon || true

# Check size, unmount, and copy back
umount /nix
# /nix now shows the original pre-bind-mount content

# Clear it and copy from temp
rm -rf /nix/*
rsync -aHAXS /mnt/nix-temp/ /nix/

systemctl start nix-daemon || true

@samrose samrose changed the title fix: try to resize tmp volume and copy nix store when done + test size before copy fix: try to resize build-time volume and copy nix store when done + test size before copy Nov 20, 2025
@samrose
Copy link
Collaborator Author

samrose commented Nov 20, 2025

closing in favor of #1938

@samrose samrose closed this Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants