mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 02:10:27 +08: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;
}