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.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.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 # ...