Skip to content

Modules

L3af edited this page May 18, 2021 · 4 revisions

Modules

Overview

All home-manager and system program configuration parts are exported and can be imported on a per program config.
Most modules include the option to pass a specific config attribute set which can be used to customize certain parts so that you aren't locked into the exact same config, the specification for these can be found under each module information.

Generic Arguments

These won't be specified in each specific module as they're always the same.

Name Type Required
pkgs path true
lib attrset false
enable bool false

- pkgs

The path to nixpkgs, used to access packages and lib (if lib option not specified)

  • Type: path
  • Required: true
  • Example(s):
    • nixpkgs
    • import <nixpkgs>
    • import /path/to/nixpkgs

- lib

The nixpks library stuffs.

  • Type: attrset
  • Required: false
  • Default: pkgs.lib
  • Example(s):
    • nixpkgs.lib

- enable

Whether to enable the imported module.

  • Type: bool
  • Required: false
  • Default: true
  • Example(s):
    • false
Clone this wiki locally