mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 19:49:45 +01:00
deploy: a10aa82e8a
This commit is contained in:
parent
a198297637
commit
5f273f3875
1 changed files with 4 additions and 2 deletions
|
@ -94,7 +94,8 @@ configured via the <code class="literal">home-manager.users.<name>.nixpkgs
|
||||||
instead use the global <code class="literal">pkgs</code> that is configured via the system level
|
instead use the global <code class="literal">pkgs</code> that is configured via the system level
|
||||||
<code class="literal">nixpkgs</code> options, set</p><pre class="programlisting nix">home-manager.useGlobalPkgs = true;</pre><p>This saves an extra Nixpkgs evaluation, adds consistency, and removes
|
<code class="literal">nixpkgs</code> options, set</p><pre class="programlisting nix">home-manager.useGlobalPkgs = true;</pre><p>This saves an extra Nixpkgs evaluation, adds consistency, and removes
|
||||||
the dependency on <code class="literal">NIX_PATH</code>, which is otherwise used for importing
|
the dependency on <code class="literal">NIX_PATH</code>, which is otherwise used for importing
|
||||||
Nixpkgs.</p></div><p>Once installed you can see <a class="xref" href="index.html#ch-usage" title="Chapter 2. Using Home Manager">Chapter 2, <em>Using Home Manager</em></a> for a more detailed
|
Nixpkgs.</p></div><div class="note"><h3 class="title">Note</h3><p>Home Manager will pass <code class="literal">osConfig</code> as a module argument to any modules
|
||||||
|
you create. This contains the system’s NixOS configuration.</p><pre class="programlisting nix">{ lib, pkgs, osConfig, ... }:</pre></div><p>Once installed you can see <a class="xref" href="index.html#ch-usage" title="Chapter 2. Using Home Manager">Chapter 2, <em>Using Home Manager</em></a> for a more detailed
|
||||||
description of Home Manager and how to use it.</p></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="sec-install-nix-darwin-module"></a>1.3. nix-darwin module</h2></div></div></div><p>Home Manager provides a module that allows you to prepare user
|
description of Home Manager and how to use it.</p></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="sec-install-nix-darwin-module"></a>1.3. nix-darwin module</h2></div></div></div><p>Home Manager provides a module that allows you to prepare user
|
||||||
environments directly from the <a class="link" href="https://github.com/LnL7/nix-darwin/" target="_top">nix-darwin</a> configuration
|
environments directly from the <a class="link" href="https://github.com/LnL7/nix-darwin/" target="_top">nix-darwin</a> configuration
|
||||||
file, which often is more convenient than using the <code class="literal">home-manager</code>
|
file, which often is more convenient than using the <code class="literal">home-manager</code>
|
||||||
|
@ -127,7 +128,8 @@ configured via the <code class="literal">home-manager.users.<name>.nixpkgs
|
||||||
instead use the global <code class="literal">pkgs</code> that is configured via the system level
|
instead use the global <code class="literal">pkgs</code> that is configured via the system level
|
||||||
<code class="literal">nixpkgs</code> options, set</p><pre class="programlisting nix">home-manager.useGlobalPkgs = true;</pre><p>This saves an extra Nixpkgs evaluation, adds consistency, and removes
|
<code class="literal">nixpkgs</code> options, set</p><pre class="programlisting nix">home-manager.useGlobalPkgs = true;</pre><p>This saves an extra Nixpkgs evaluation, adds consistency, and removes
|
||||||
the dependency on <code class="literal">NIX_PATH</code>, which is otherwise used for importing
|
the dependency on <code class="literal">NIX_PATH</code>, which is otherwise used for importing
|
||||||
Nixpkgs.</p></div><p>Once installed you can see <a class="xref" href="index.html#ch-usage" title="Chapter 2. Using Home Manager">Chapter 2, <em>Using Home Manager</em></a> for a more detailed
|
Nixpkgs.</p></div><div class="note"><h3 class="title">Note</h3><p>Home Manager will pass <code class="literal">osConfig</code> as a module argument to any modules
|
||||||
|
you create. This contains the system’s nix-darwin configuration.</p><pre class="programlisting nix">{ lib, pkgs, osConfig, ... }:</pre></div><p>Once installed you can see <a class="xref" href="index.html#ch-usage" title="Chapter 2. Using Home Manager">Chapter 2, <em>Using Home Manager</em></a> for a more detailed
|
||||||
description of Home Manager and how to use it.</p></div></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="ch-usage"></a>Chapter 2. Using Home Manager</h1></div></div></div><p>Your use of Home Manager is centered around the configuration file,
|
description of Home Manager and how to use it.</p></div></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="ch-usage"></a>Chapter 2. Using Home Manager</h1></div></div></div><p>Your use of Home Manager is centered around the configuration file,
|
||||||
which is typically found at <code class="literal">~/.config/home-manager/home.nix</code> in the standard installation
|
which is typically found at <code class="literal">~/.config/home-manager/home.nix</code> in the standard installation
|
||||||
or <code class="literal">~/.config/home-manager/flake.nix</code> in a Nix flake based installation.</p><div class="note"><h3 class="title">Note</h3><p>The default configuration used to be placed in <code class="literal">~/.config/nixpkgs</code>¸
|
or <code class="literal">~/.config/home-manager/flake.nix</code> in a Nix flake based installation.</p><div class="note"><h3 class="title">Note</h3><p>The default configuration used to be placed in <code class="literal">~/.config/nixpkgs</code>¸
|
||||||
|
|
Loading…
Reference in a new issue