From 35d2d5e7c6bf1d9678408bcb25069e6bde394ef8 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Sun, 15 Dec 2024 20:49:56 -0700 Subject: [PATCH 1/4] darwin-rebuild: add page --- pages/osx/darwin-rebuild.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/osx/darwin-rebuild.md diff --git a/pages/osx/darwin-rebuild.md b/pages/osx/darwin-rebuild.md new file mode 100644 index 00000000000000..c9ae9e11c870a1 --- /dev/null +++ b/pages/osx/darwin-rebuild.md @@ -0,0 +1,16 @@ +# darwin-rebuild + +> A command for rebuilding and switching to a Nix-based Darwin (macOS) system configuration. +> More information: . + +- Rebuild and switch to the specified Darwin configuration: + +`darwin-rebuild switch --flake {{path/to/flake}}` + +- Build the configuration but don't switch to it: + +`darwin-rebuild build --flake {{path/to/flake}}` + +- Show available commands and options: + +`darwin-rebuild --help` From c6b36a8500143c03a2c4e95ce25cfc5013b90355 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Sun, 15 Dec 2024 20:55:21 -0700 Subject: [PATCH 2/4] home-manager: improve page examples and description --- pages/common/home-manager.md | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/pages/common/home-manager.md b/pages/common/home-manager.md index 47d51e7b4f387b..37529c093f8b0d 100644 --- a/pages/common/home-manager.md +++ b/pages/common/home-manager.md @@ -1,12 +1,24 @@ # home-manager -> Manage a user environment using Nix. -> More information: . +> Manage a per-user environment using Nix, allowing declarative configuration of the user’s home. +> More information: . -- Activate the configuration defined in `~/.config/nixpkgs/home.nix`: +- Build the configuration defined in `~/.config/nixpkgs/home.nix` without applying it: `home-manager build` -- Activate the configuration and switch to it: +- Build and apply (switch to) the new configuration: `home-manager switch` + +- Build the configuration for testing without applying it: + +`home-manager test` + +- Roll back to a previous configuration generation: + +`home-manager rollback` + +- List all existing configuration generations: + +`home-manager generations` From dc4fda6ea935629c840dd84ad6b760feff5526fb Mon Sep 17 00:00:00 2001 From: Abhishek <50703483+Abhishek-1804@users.noreply.github.com> Date: Mon, 16 Dec 2024 23:03:11 +0530 Subject: [PATCH 3/4] Update pages/osx/darwin-rebuild.md Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/osx/darwin-rebuild.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/osx/darwin-rebuild.md b/pages/osx/darwin-rebuild.md index c9ae9e11c870a1..8a461a627961ea 100644 --- a/pages/osx/darwin-rebuild.md +++ b/pages/osx/darwin-rebuild.md @@ -1,6 +1,6 @@ # darwin-rebuild -> A command for rebuilding and switching to a Nix-based Darwin (macOS) system configuration. +> Rebuild and switch to a Nix-based Darwin (macOS) system configuration. > More information: . - Rebuild and switch to the specified Darwin configuration: From f7cf50515e232091ef9038053c5e911abd289fed Mon Sep 17 00:00:00 2001 From: Abhishek <50703483+Abhishek-1804@users.noreply.github.com> Date: Mon, 16 Dec 2024 23:03:19 +0530 Subject: [PATCH 4/4] Update pages/osx/darwin-rebuild.md Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/osx/darwin-rebuild.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/osx/darwin-rebuild.md b/pages/osx/darwin-rebuild.md index 8a461a627961ea..72b7a40930681f 100644 --- a/pages/osx/darwin-rebuild.md +++ b/pages/osx/darwin-rebuild.md @@ -11,6 +11,6 @@ `darwin-rebuild build --flake {{path/to/flake}}` -- Show available commands and options: +- Display help: `darwin-rebuild --help`