install-nix-action icon indicating copy to clipboard operation
install-nix-action copied to clipboard

Support uninstall & reinstall `force` option

Open sdankel opened this issue 2 years ago • 3 comments

It would be great to have an option to uninstall any existing version of nix before installing the new version. Something like a force option.

Uninstallation is complicated, particularly on macos: https://github.com/NixOS/nix/issues/3900

Having a github action to do this would be very helpful.

sdankel avatar Aug 15 '23 20:08 sdankel

Is this for self-hosted runners?

domenkozar avatar Sep 01 '23 12:09 domenkozar

Yes, it would be useful for self-hosted runners.

sdankel avatar Sep 14 '23 00:09 sdankel

I’d really appreciate this option, as it would help users of self-hosted runners. My workflow failed once due to a minor mistake, and now installing Nix via cachix/[email protected] always fails—even after I’ve fully cleaned Nix from the runner.

pchandra19 avatar Aug 18 '25 13:08 pchandra19