From 36999b8d19eb6eebb41983ef017d7e0095316af2 Mon Sep 17 00:00:00 2001 From: cbarrete <62146989+cbarrete@users.noreply.github.com> Date: Wed, 8 Mar 2023 05:29:47 -0500 Subject: [PATCH] docs: simplify flake-specific instructions in the documentation (#3737) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- docs/nix-flakes.adoc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/nix-flakes.adoc b/docs/nix-flakes.adoc index 98e66bb20..2520e8ef8 100644 --- a/docs/nix-flakes.adoc +++ b/docs/nix-flakes.adoc @@ -126,10 +126,7 @@ $ nix flake new ~/.config/nixpkgs -t github:nix-community/home-manager 2. Install Home Manager and apply the configuration by + [source,console] ----- -$ nix build --no-link #homeConfigurations.jdoe.activationPackage -$ "$(nix path-info #homeConfigurations.jdoe.activationPackage)"/activate ----- +$ nix run #homeConfigurations.jdoe.activationPackage + Substitute `` with the flake URI of the configuration flake. If `flake.nix` resides in `~/.config/nixpkgs`,