Error installing with Disko: no space left

Hi,

I’m using disko to install nix from a 16GB usb drive. The nix live partition is only 7.5GB, so when I run $ sudo nix run 'github:nix-community/disko#disko-install' -- --flake '/tmp/config/etc/nixos#mymachine' --disk main /dev/sda I run out of space. I’ve tried attaching another hard drive and setting TMPDIR=... but the disko command ignores it.

Any help appreciated!

1 Like

To be fair, I haven’t tried this in a while, but last time I installed from a flash drive I had a similar problem and found this command that seemed to make it work.

mount -o remount,size=8G /run/user/0

Thanks dude. I ended up doing

nix-shell -p disko
sudo disko --mode disko --flake .#name
sudo nixos-install --no-channel-copy --no-root-password --flake .#name

although I forgot to set a password so I think I’ll have to do it again!