You can move the contents of /etc/nixos to a directory in your home directory (remember to chown it!) and run home-manager switch --flake .#mike@hostname from there, you would also need to pass --flake . to nixos-rebuild switch.
1 Like