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

darwin-rebuild: add page, home-manager: edit page #15175

Merged
merged 16 commits into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions pages/common/home-manager.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
# home-manager

> Manage a user environment using Nix.
> More information: <https://github.com/rycee/home-manager>.
> Manage a per-user environment using Nix, allowing declarative configuration of the user’s home.
> More information: <https://github.com/nix-community/home-manager>.

- 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`
16 changes: 16 additions & 0 deletions pages/osx/darwin-rebuild.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# darwin-rebuild

> A command for rebuilding and switching to a Nix-based Darwin (macOS) system configuration.
Abhishek-1804 marked this conversation as resolved.
Show resolved Hide resolved
> More information: <https://github.com/LnL7/nix-darwin>.

- 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:
Abhishek-1804 marked this conversation as resolved.
Show resolved Hide resolved

`darwin-rebuild --help`
Loading