nix-darwin icon indicating copy to clipboard operation
nix-darwin copied to clipboard

Uninstall fails on fresh install

Open schwa opened this issue 1 year ago • 2 comments

Testing nix-darwin and now trying to uninstall via

nix-build https://github.com/LnL7/nix-darwin/archive/master.tar
.gz -A uninstaller

And getting this error:


error:
       … while calling the 'import' builtin

         at /nix/store/9b3h7kfb7crgz84xpvzvwx85gcbfhy8x-source/default.nix:4:10:

            3| , lib ? pkgs.lib
            4| , pkgs ? import nixpkgs { inherit system; }
             |          ^
            5| , system ? builtins.currentSystem

       … while calling the 'findFile' builtin

         at /nix/store/9b3h7kfb7crgz84xpvzvwx85gcbfhy8x-source/default.nix:1:13:

            1| { nixpkgs ? <nixpkgs>
             |             ^
            2| , configuration ? <darwin-config>

       error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)

       at «none»:0: (source not available)

schwa avatar Jan 17 '24 16:01 schwa

Try this instead:

$ nix --extra-experimental-features "nix-command flakes" run nix-darwin#darwin-uninstaller

Enzime avatar Jan 18 '24 00:01 Enzime

I just had the same issue. Except, not a fresh install. I was using it for a while and something broke. The same uninstall command wouldn't work for me.

This one does..

aspauldingcode avatar Jan 20 '24 23:01 aspauldingcode