mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-10 21:55:44 +02:00
darwin-rebuild: add page, home-manager: edit page (#15175)
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
parent
f41ba468c5
commit
90a67cbe63
2 changed files with 32 additions and 4 deletions
|
@ -1,12 +1,24 @@
|
||||||
# home-manager
|
# home-manager
|
||||||
|
|
||||||
> Manage a user environment using Nix.
|
> Manage a per-user environment using Nix, allowing declarative configuration of the user’s home.
|
||||||
> More information: <https://github.com/rycee/home-manager>.
|
> 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`
|
`home-manager build`
|
||||||
|
|
||||||
- Activate the configuration and switch to it:
|
- Build and apply (switch to) the new configuration:
|
||||||
|
|
||||||
`home-manager switch`
|
`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
pages/osx/darwin-rebuild.md
Normal file
16
pages/osx/darwin-rebuild.md
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# darwin-rebuild
|
||||||
|
|
||||||
|
> Rebuild and switch to a Nix-based Darwin (macOS) system configuration.
|
||||||
|
> 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}}`
|
||||||
|
|
||||||
|
- Display help:
|
||||||
|
|
||||||
|
`darwin-rebuild --help`
|
Loading…
Add table
Reference in a new issue