From 095ba5502c83c5fd8173a1b0dbc99a0e1be7e42d Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Thu, 21 Nov 2024 10:52:11 +1100 Subject: [PATCH] default: expose all the `darwin-*` commands Change `uninstaller` to `darwin-uninstaller` to match flake attribute --- README.md | 3 ++- default.nix | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2623b9fa..d5373273 100644 --- a/README.md +++ b/README.md @@ -131,7 +131,8 @@ nix-channel --update To install `nix-darwin`, you can just run `darwin-rebuild switch` to install nix-darwin. As `darwin-rebuild` won't be installed in your `PATH` yet, you can use the following command: ```bash -nix --extra-experimental-features "nix-command flakes" run nix-darwin -- switch -I darwin-config=$HOME/.config/nix-darwin/configuration.nix +nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A darwin-rebuild +./result/bin/darwin-rebuild switch -I darwin-config=$HOME/.config/nix-darwin/configuration.nix ``` ### Step 4. Using `nix-darwin` diff --git a/default.nix b/default.nix index 075ae6d2..8bae7e1e 100644 --- a/default.nix +++ b/default.nix @@ -17,5 +17,7 @@ let }; in eval // { - uninstaller = pkgs.callPackage ./pkgs/darwin-uninstaller { }; + darwin-uninstaller = pkgs.callPackage ./pkgs/darwin-uninstaller { }; + + inherit (pkgs.callPackage ./pkgs/nix-tools { }) darwin-option darwin-rebuild darwin-version; }