pub-solar-os/extern
Timothy DeHerrera 87008d851c
extern: typo
2021-02-21 14:16:52 -07:00
..
default.nix extern: typo 2021-02-21 14:16:52 -07:00
README.md doc#extern: docment hmModules 2021-02-20 12:42:36 -07:00

External Art

When you need to use a module, overlay, or pass a value from one of your inputs to the rest of your NixOS configuration, extern is where you do it.

Modules and overlays are self explanatory, and the specialArgs attribute is 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:

{
  hmModules = {
    inherit (someFlake.hmModules) anHmModule;
  };
}