I enabled nixos-init which then errored as I needed to enable three other things for that to work (like systemd initrd). After enabling them and rebuilding, I came back to Neovim which had notified me that my config file no longer existed. I looked for it and found my /etc/nixos gone. After this, I tried rebuilding again and it failed because there’s no config. A few minutes later, my root password no longer worked. I also had some internet issues (dns, email) but I’m not sure of those were related or not. I decided to shut off my computer and turn it back on. I got to the login screen but it rejected my password. Not sure what to do from here so I came to the forums. I did manage to get my config onto a usb drive so my system isn’t completely lost.
In retrospect, I should’ve gone straight to root while it still worked and recreated the nixos directory but it’s a bit late for that.
I’m on 25.11 currently.