I was copying a snippet I had from the nixos wiki for podman system wide. It kept giving me errors so I started slowing removing stuff. One thing was networking.networkmanager.enable
I then rebuild the system and course I don’t have network manager anymore.. I do have it in the previous generations.
You should be able to just roll back: nixos-rebuild switch –rollback (if generation with NM was previous one). Or use nixos-rebuild list-generations and then use /nix/var/nix/profiles/system-N-link/bin/switch-to-configuration switch where N is the generation number you want to switch to.