mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00:00
docs: Document osConfig module argument (#4103)
As mentioned https://github.com/nix-community/home-manager/issues/393#issuecomment-1259996423. Otherwise only documented in source code, which isn't very findable.
This commit is contained in:
parent
0480dabc99
commit
a10aa82e8a
1 changed files with 18 additions and 0 deletions
|
@ -219,6 +219,15 @@ the dependency on `NIX_PATH`, which is otherwise used for importing
|
|||
Nixpkgs.
|
||||
====
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
Home Manager will pass `osConfig` as a module argument to any modules
|
||||
you create. This contains the system's NixOS configuration.
|
||||
|
||||
[source,nix]
|
||||
{ lib, pkgs, osConfig, ... }:
|
||||
====
|
||||
|
||||
Once installed you can see <<ch-usage>> for a more detailed
|
||||
description of Home Manager and how to use it.
|
||||
|
||||
|
@ -325,5 +334,14 @@ the dependency on `NIX_PATH`, which is otherwise used for importing
|
|||
Nixpkgs.
|
||||
====
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
Home Manager will pass `osConfig` as a module argument to any modules
|
||||
you create. This contains the system's nix-darwin configuration.
|
||||
|
||||
[source,nix]
|
||||
{ lib, pkgs, osConfig, ... }:
|
||||
====
|
||||
|
||||
Once installed you can see <<ch-usage>> for a more detailed
|
||||
description of Home Manager and how to use it.
|
||||
|
|
Loading…
Reference in a new issue