1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-28 12:35:28 +02:00
tldr/pages/common/home-manager.md
axel simon bb3bf84623
home-manager: remove test, add --flake example (#15975)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2025-03-20 07:14:23 +02:00

24 lines
701 B
Markdown

# 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>.
- Build the configuration defined in `~/.config/nixpkgs/home.nix` without applying it:
`home-manager build`
- Build and apply (switch to) the new configuration:
`home-manager switch`
- Roll back to a previous configuration generation:
`home-manager rollback`
- List all existing configuration generations:
`home-manager generations`
- When using flakes, run any operation that requires nix to run (build, switch, news) by passing the path to the flake:
`home-manager {{command}} --flake {{path/to/flake}}`