When it goes into /etc/fstab it doesn't get quoted (it probably should if that's possible) so you need to escape the space. nixos-rebuild switch let me make this mistake. Then it wouldn't let me fix my mistake and couldn't roll it back. Just kept saying it died in /nix/var/nix/profiles/system/bin/switch-to-configuration at line 239 which is where it validates the strings in your current /etc/fstab instead of validating the new one it's going to create. I had to mount my volume read/write to fix it in /nix/store
So, to summarize, 3 things:
Quote strings when possible
Validate the new string
Don't validate the old string
Update
You can supposedly escape spaces with \040. I tried that as well as \\040 in case nix thinks I'm escaping the 0 and still no luck so I actually gave up and just renamed the stupid partitions.
I put a line like:
when I should have put:
When it goes into
/etc/fstab
it doesn't get quoted (it probably should if that's possible) so you need to escape the space.nixos-rebuild switch
let me make this mistake. Then it wouldn't let me fix my mistake and couldn't roll it back. Just kept saying it died in/nix/var/nix/profiles/system/bin/switch-to-configuration
at line 239 which is where it validates the strings in your current/etc/fstab
instead of validating the new one it's going to create. I had to mount my volume read/write to fix it in/nix/store
So, to summarize, 3 things:
Update
You can supposedly escape spaces with
\040
. I tried that as well as\\040
in case nix thinks I'm escaping the 0 and still no luck so I actually gave up and just renamed the stupid partitions.