2019-06-06 16:40:53 +02:00
|
|
|
# home-manager
|
|
|
|
|
2024-12-26 11:23:40 -07:00
|
|
|
> Manage a per-user environment using Nix, allowing declarative configuration of the user’s home.
|
|
|
|
> More information: <https://github.com/nix-community/home-manager>.
|
2019-06-06 16:40:53 +02:00
|
|
|
|
2024-12-26 11:23:40 -07:00
|
|
|
- Build the configuration defined in `~/.config/nixpkgs/home.nix` without applying it:
|
2019-06-06 16:40:53 +02:00
|
|
|
|
|
|
|
`home-manager build`
|
|
|
|
|
2024-12-26 11:23:40 -07:00
|
|
|
- Build and apply (switch to) the new configuration:
|
2019-06-06 16:40:53 +02:00
|
|
|
|
|
|
|
`home-manager switch`
|
2024-12-26 11:23:40 -07:00
|
|
|
|
|
|
|
- Roll back to a previous configuration generation:
|
|
|
|
|
|
|
|
`home-manager rollback`
|
|
|
|
|
|
|
|
- List all existing configuration generations:
|
|
|
|
|
|
|
|
`home-manager generations`
|
2025-03-20 05:14:23 +00:00
|
|
|
|
|
|
|
- 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}}`
|