Anybody ran into "secret key is corrupt"?

I opened an issue at Getting "secret key is corrupt" on most commands · Issue #45339 · NixOS/nixpkgs · GitHub (see that for full details), but most of my nix commands are failing with “error: secret key is corrupt”. I mostly just want to work around this for now…is my best bet to just completely reinstall nix? Or does anybody know where secret keys are stored / how I can regenerate it or something?