Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

lib.imports

lib.imports.importLib

Import and evaluate a library. If the imported library is a function, this calls it with specialArgs.

Type

importLib :: a -> Path -> b

Arguments

specialArgs
Arguments to pass to the library.
path
Path to the library.

Usage

{inputs, ...}: let
  inherit (inputs.nix-config.lib.imports) importLib;
in # ...

Source

lib/imports/lib.nix:27

lib.imports.importModule

Import and evaluate a module. If the imported module is a function, this wraps it in another function that applies specialArgs when the module is evaluated.

Type

importModule :: a -> Path -> b

Arguments

specialArgs
Arguments to bind to the module.
path
Path to the module.

Usage

{inputs, ...}: let
  inherit (inputs.nix-config.lib.imports) importModule;
in # ...

Source

lib/imports/lib.nix:48

lib.imports.importPackage

Import and evaluate a package. If the imported package is a function, this wraps it in another function that applies specialArgs when evaluated.

Type

importPackage :: a -> Path -> b

Arguments

pkgs
The Nixpkgs instance to call the package with.
specialArgs
Arguments to bind to the package.
path
Path to the package.

Usage

{inputs, ...}: let
  inherit (inputs.nix-config.lib.imports) importPackage;
in # ...

Source

lib/imports/lib.nix:76