From f87344678785042f2ffb03c1c834213c1caacb6c Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Sat, 20 Feb 2021 12:42:36 -0700 Subject: [PATCH] doc#extern: docment hmModules --- extern/README.md | 10 ++++++++++ extern/default.nix | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/extern/README.md b/extern/README.md index 80f5c15b..0ca99bb1 100644 --- a/extern/README.md +++ b/extern/README.md @@ -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 diff --git a/extern/default.nix b/extern/default.nix index be5219cd..2f8677e9 100644 --- a/extern/default.nix +++ b/extern/default.nix @@ -1,6 +1,6 @@ { inputs }: with inputs; let - hm-modules = { }; + hmModules = { }; in { modules = [