-
|
👋 I'm exploring using lima and nix for a reproducible development environment. Can I customize the root partition disk size? Or mount a data volume at /nix? I am using alpine as the base image and then installing nix. Nix uses Yet I see my configured 100GB of space in /tmp/data: Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
This is specific to Alpine (because we use an ISO and not a regular image): The "diffdisk" in this case is indeed a separate data volume, and the following directories have been moved to the persisted disk: You will notice that changes to any other part of the filesystem will be reverted by an instance restart because the OS runs from a However, it should be easy enough to move your # mv /nix /mnt/data
# mkdir /nix
# mount --bind /mnt/data/nix /nixYou will also want to create a system provisioning script in your |
Beta Was this translation helpful? Give feedback.
This is specific to Alpine (because we use an ISO and not a regular image):
The "diffdisk" in this case is indeed a separate data volume, and the following directories have been moved to the persisted disk:
/etc,/home,/tmp,/usr/local, and/var/lib.You will notice that changes to any other part of the filesystem will be reverted by an instance restart because the OS runs from a
tmpfs.However, it should be easy enough to move your
/nixdirectory to the persistent volume too:You will also want to create a system provisioning script in your
lima.yamlto repeat themountcommand on each boot.