nix-community / impermanence

Modules to help you handle persistent state on systems with ephemeral root storage [maintainer=@talyz]
MIT License
1.09k stars 80 forks source link

Argument list too long #78

Closed shadowrylander closed 2 years ago

shadowrylander commented 2 years ago

Hello!

While setting up the build environment: executing '/nix/store/...-bash-5.1-p8/bin/bash': Argument list too long.

I'm getting this while installing nixos with a presumably large number of files and directories.

How might I go about fixing this?

Thank you kindly for the help!

talyz commented 2 years ago

Do you have more context info? Where is the argument list in question?

shadowrylander commented 2 years ago

All the files here! 😭 It gives me no other context, but only happens when I add these files to the list!

talyz commented 2 years ago

It should at least say what it's trying to build before the error message. Can you paste the whole output, even if it doesn't look relevant? Is this using the NixOS or the home-manager module?

shadowrylander commented 2 years ago

NixOS, and I'm just about to restart the install; I'll paste the output in a bit!

shadowrylander commented 2 years ago

Here it is! https://github.com/shadowrylander/shadowrylander/blob/main/tmp

talyz commented 2 years ago

Can you try #85? I hope it solves this issue.

shadowrylander commented 2 years ago

So I invalidated the tarball cache, wiped out the mountpoint's nix directory, and reinstalled; same error.

talyz commented 2 years ago

Well, if that doesn't solve it, I have no idea what the issue is :shrug: How did you fetch the branch?

shadowrylander commented 2 years ago

fetchGit; I'm currently trying again from a fresh install medium instance.

shadowrylander commented 2 years ago

Well that didn't work...

shadowrylander commented 2 years ago

Wait, wait, wait, wait, wait; just realized you're using a pull-request branch!

shadowrylander commented 2 years ago

YES! YES IT WORKS! THANK YOU SO MUCH!