1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

docs: simplify flake-specific instructions in the documentation (#3737)

Install home-manager via `nix run` rather than `nix-build` then running
the activation script out of the store manually.

Co-authored-by: Cédric Barreteau <cbarrete@users.noreply.github.com>
This commit is contained in:
cbarrete 2023-03-08 05:29:47 -05:00 committed by GitHub
parent f69816489d
commit 36999b8d19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,10 +126,7 @@ $ nix flake new ~/.config/nixpkgs -t github:nix-community/home-manager
2. Install Home Manager and apply the configuration by 2. Install Home Manager and apply the configuration by
+ +
[source,console] [source,console]
---- $ nix run <flake-uri>#homeConfigurations.jdoe.activationPackage
$ nix build --no-link <flake-uri>#homeConfigurations.jdoe.activationPackage
$ "$(nix path-info <flake-uri>#homeConfigurations.jdoe.activationPackage)"/activate
----
+ +
Substitute `<flake-uri>` with the flake URI of the configuration flake. Substitute `<flake-uri>` with the flake URI of the configuration flake.
If `flake.nix` resides in `~/.config/nixpkgs`, If `flake.nix` resides in `~/.config/nixpkgs`,