Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 384 Bytes

importing-modules.section.md

File metadata and controls

18 lines (14 loc) · 384 Bytes

Importing Modules {#sec-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;
}