My issue was related to How can I fix a corrupt manifest.nix? · Issue #18279 · NixOS/nixpkgs · GitHub , an empty manifest was causing nix-env to error when running any command.
My issue was related to How can I fix a corrupt manifest.nix? · Issue #18279 · NixOS/nixpkgs · GitHub , an empty manifest was causing nix-env to error when running any command.