1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-05 02:39:45 +01:00

readme: expand preconditions installation step

Also fix markdown list item numbering.
This commit is contained in:
BjornMelgaard 2017-11-05 23:24:42 +02:00 committed by Robert Helgesson
parent a0afb6ec8e
commit fc3e82584b
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -46,6 +46,14 @@ Currently the easiest way to install Home Manager is as follows:
since Home Manager uses these directories to manage your profile since Home Manager uses these directories to manage your profile
generations. On NixOS these should already be available. generations. On NixOS these should already be available.
Also make sure that your user is able to build and install Nix
packages. For example, you should be able to successfully run a
command like `nix-instantiate '<nixpkgs>' -A hello`. For a
multi-user install of Nix this means that your user must be
covered by the [`allowed-users`][nixAllowedUsers] Nix option. On
NixOS you can control this option using the
[`nix.allowedUsers`][nixosAllowedUsers] system option.
2. Assign a temporary variable holding the URL to the appropriate 2. Assign a temporary variable holding the URL to the appropriate
archive. Typically this is archive. Typically this is
@ -61,7 +69,7 @@ Currently the easiest way to install Home Manager is as follows:
depending on whether you follow Nixpkgs unstable or version 17.09. depending on whether you follow Nixpkgs unstable or version 17.09.
2. Create an initial Home Manager configuration file: 3. Create an initial Home Manager configuration file:
```console ```console
$ cat > ~/.config/nixpkgs/home.nix <<EOF $ cat > ~/.config/nixpkgs/home.nix <<EOF
@ -72,7 +80,7 @@ Currently the easiest way to install Home Manager is as follows:
EOF EOF
``` ```
3. Create the first Home Manager generation: 4. Create the first Home Manager generation:
```console ```console
$ nix-shell $HM_PATH -A install --run 'home-manager switch' $ nix-shell $HM_PATH -A install --run 'home-manager switch'
@ -235,3 +243,5 @@ in your Home Manager configuration.
[Nix]: https://nixos.org/nix/ [Nix]: https://nixos.org/nix/
[NixOS]: https://nixos.org/ [NixOS]: https://nixos.org/
[Nixpkgs]: https://nixos.org/nixpkgs/ [Nixpkgs]: https://nixos.org/nixpkgs/
[nixAllowedUsers]: https://nixos.org/nix/manual/#conf-allowed-users
[nixosAllowedUsers]: https://nixos.org/nixos/manual/options.html#opt-nix.allowedUsers