I have two ssd in my pc and i used the second one to store my steam games. I tried to make it automount by mounting it then using the command “nixos-generate-config” but when i restarted it didnt fixed it. I looked at hardware config but the disk isnt mentoined there.
I tried to declare it like this in the nix config but this didnt worked.
I am a bit at odds with your copy-paste of your config files. They don’t seem to preserve the correct formatting. And some boolean values have been replaced by different characters. Not really bad for reading, but I can’t you take them, edit and copy-paste back.
So you’ll have to do that yourself.
I’d just add the filesystem that you have to your hardware-config.nix and implement the two changes already proposed:
Define the device to mount by uuid instead of /dev/sdb1 just like the other filesystems. You can check the uuid you need in /dev/disk/by-uuid/.