Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a uninstaller for flakes #918

Open
bernes1 opened this issue Mar 27, 2024 · 4 comments
Open

Add a uninstaller for flakes #918

bernes1 opened this issue Mar 27, 2024 · 4 comments

Comments

@bernes1
Copy link

bernes1 commented Mar 27, 2024

add this comand for uninstaller if you are using flakes becuase the other uninstaller dont work if you are using flakes

#853 (comment)

@OJFord
Copy link

OJFord commented Apr 5, 2024

I needed this even with the non-flake installation. I think the issue is that the readme flake/non-flake is about how nix-darwin is installed, but the non-flake uninstallation section still assumes nix is configured to support flakes.

@Enzime
Copy link
Collaborator

Enzime commented Apr 6, 2024

https://github.com/LnL7/nix-darwin?tab=readme-ov-file#uninstalling

I don't think this command should require flakes

@bernes1
Copy link
Author

bernes1 commented Apr 6, 2024

the unistaller in the readme did not work with my flake setup

@noghartt
Copy link

Any update on that? I having an issue with the uninstaller too into my flake setup

$NIX_PATH won't be set into macOS with flake

nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A uninstaller
error:
       … while calling the 'import' builtin

         at /nix/store/v644prfh8sbnr9fx4kzisrpmixl07yss-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/v644prfh8sbnr9fx4kzisrpmixl07yss-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)
``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants