NixOS modules: Difference between revisions
imported>Jtojnar avoid deprecated github:NixOS/nixpkgs-channels |
imported>Makefu clarification of require |
||
Line 29: | Line 29: | ||
require = [ | require = [ | ||
# paths to other modules | # paths to other modules | ||
./module.nix | |||
/path/to/absolute/module.nix | |||
]; | ]; | ||
Line 34: | Line 36: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Note: <code>require</code> is considered obsolete and there is no reason to use it anymore, however it may still linger in some legacy code. <code>imports</code> provides the same behavior. | |||
=== Function === | === Function === |