doc#extern: docment hmModules

This commit is contained in:
Timothy DeHerrera 2021-02-20 12:42:36 -07:00
parent aff6c085cc
commit f873446787
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122
2 changed files with 11 additions and 1 deletions

10
extern/README.md vendored
View File

@ -7,4 +7,14 @@ used to extend the arguments passed to all NixOS modules, allowing for
arbitrary values to be passed from flake inputs to the rest of your
configuration.
There is also an `hmModules` attribute set for pulling home-manager modules in
from the outside world:
```nix
{
hmModules = {
inherit (someFlake.hmModules) anHmModule;
};
}
```
[extern]: https://github.com/divnix/devos/tree/core/extern/default.nix

2
extern/default.nix vendored
View File

@ -1,6 +1,6 @@
{ inputs }: with inputs;
let
hm-modules = { };
hmModules = { };
in
{
modules = [