NixOS modules: Difference between revisions

imported>Toraritte
Move "NixOS Module Enhancements" section from Alternative Package Sets article to here
imported>Fricklerhandwerk
add example to make module available, do not recommend search paths
Line 231: Line 231:
=== Using external NixOS modules ===
=== Using external NixOS modules ===


Some external modules provide extra functionality to the nixpkgs module system. You can include these modules after extracting them onto the system by using <code>imports = [ `path to module`]</code> or add them to your <code>NIX_PATH</code> via <code>NIX_PATH=$NIX_PATH:musnix=/path/to/musnix</code> and import them by including <code>imports = [ <musnix> ]</code> in your <code>configuration.nix</code>.
Some external modules provide extra functionality to the NixOS module system. You can include these modules, after making them available as a file system path (e.g. through <code>builtins.fetchTarball</code>), by using <code>imports = [ `path to module`]</code> in your <code>configuration.nix</code>.


* [https://github.com/ip1981/nixsap Nixsap] - allows to run multiple instances of a service without containers.
* [https://github.com/ip1981/nixsap Nixsap] - allows to run multiple instances of a service without containers.