Files
dotfiles-modules/docs/options.md

7.2 KiB

_module.args

Additional arguments passed to each module in addition to ones like lib, config, and pkgs, modulesPath.

This option is also available to all submodules. Submodules do not inherit args from their parent module, nor do they provide args to their parent module or sibling submodules. The sole exception to this is the argument name which is provided by parent modules to a submodule and contains the attribute name the submodule is bound to, or a unique generated name if it is not bound to an attribute.

Some arguments are already passed by default, of which the following cannot be changed with this option:

  • lib: The nixpkgs library.

  • config: The results of all options after merging the values from all modules together.

  • options: The options declared in all modules.

  • specialArgs: The specialArgs argument passed to evalModules.

  • All attributes of specialArgs

    Whereas option values can generally depend on other option values thanks to laziness, this does not apply to imports, which must be computed statically before anything else.

    For this reason, callers of the module system can provide specialArgs which are available during import resolution.

    For NixOS, specialArgs includes modulesPath, which allows you to import extra modules from the nixpkgs package tree without having to somehow make the module aware of the location of the nixpkgs or NixOS directories.

    { modulesPath, ... }: {
      imports = [
        (modulesPath + "/profiles/minimal.nix")
      ];
    }
    

For NixOS, the default value for this option includes at least this argument:

  • pkgs: The nixpkgs package set according to the nixpkgs.pkgs option.

Type: lazy attribute set of raw value

Declared by:

modules.default_apps.enable

Whether to enable default_apps.

Type: boolean

Default: false

Example: true

Declared by:

modules.editorconfig.enable

Whether to enable enables editorconfig.

Type: boolean

Default: false

Example: true

Declared by:

modules.fish.enable

Whether to enable fish.

Type: boolean

Default: false

Example: true

Declared by:

modules.hyprland.enable

Whether to enable hyprland.

Type: boolean

Default: false

Example: true

Declared by:

modules.hyprpanel.enable

Whether to enable hyprpanel.

Type: boolean

Default: false

Example: true

Declared by:

modules.hyprpanel.avatar.image

avatar image

Type: absolute path

Default: ""

Declared by:

modules.hyprpanel.avatar.name

Username to be displayed

Type: string

Default: "John Doe"

Declared by:

modules.neovim.enable

Whether to enable neovim.

Type: boolean

Default: false

Example: true

Declared by:

modules.nushell.enable

Whether to enable nushell.

Type: boolean

Default: false

Example: true

Declared by:

modules.starship.enable

Whether to enable enables starship.

Type: boolean

Default: false

Example: true

Declared by:

modules.terminalEmulators.ghostty.enable

Whether to enable ghostty.

Type: boolean

Default: false

Example: true

Declared by:

modules.terminalEmulators.kitty.enable

Whether to enable kitty.

Type: boolean

Default: false

Example: true

Declared by:

modules.terminalEmulators.wezterm.enable

Whether to enable kitty.

Type: boolean

Default: false

Example: true

Declared by:

modules.theme.enable

Whether to enable theme.

Type: boolean

Default: false

Example: true

Declared by:

modules.tmux.enable

Whether to enable tmux.

Type: boolean

Default: false

Example: true

Declared by:

modules.utilities.enable

Whether to enable utilities.

Type: boolean

Default: false

Example: true

Declared by:

modules.walker.enable

Whether to enable walker.

Type: boolean

Default: false

Example: true

Declared by: