mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-09 16:18:34 +01:00
384 B
384 B
Importing Modules
Sometimes NixOS modules need to be used in configuration but exist outside of Nixpkgs. These modules can be imported:
{
config,
lib,
pkgs,
...
}:
{
imports = [
# Use a locally-available module definition in
# ./example-module/default.nix
./example-module
];
services.exampleModule.enable = true;
}