Structure
Function Arguments
myconfigName
(string): the category for all Denix module options, hosts, and rices. Defaults tomyconfig
; changes are not recommended.denixLibName
(string): the name of the Denix library inspecialArgs
({denixLibName, ...}: denixLibName.module { ... }
). Defaults todelib
; changes are not recommended.nixpkgs
(nixpkgs): used to override nixpkgs in your configuration, equivalent toinputs.denix.inputs.nixpkgs.follows
. Defaults toinputs.nixpkgs
.home-manager
(home-manager): used to override home-manager in your configuration, equivalent toinputs.denix.inputs.home-manager.follows
. Defaults toinputs.home-manager
.nix-darwin
(nix-darwin): used to override nix-darwin in your configuration, equivalent toinputs.denix.inputs.nix-darwin.follows
. Defaults toinputs.nix-darwin
.homeManagerNixpkgs
(nixpkgs): used in thepkgs
attribute of thehome-manager.lib.homeManagerConfiguration
function in the format:homeManagerNixpkgs.legacyPackages.${host :: homeManagerSystem}
. Defaults to thenixpkgs
provided in the function arguments.homeManagerUser
(string): the username, used inhome-manager.users.${homeManagerUser}
and for generating the Home Manager configuration list.moduleSystem
("nixos", "home", and "darwin"): specifies which module system the configuration list should be generated for - NixOS, Home Manager, or Nix-Darwin.paths
(listOf string): paths to be imported; add hosts, rices, and modules here. Defaults to[]
.exclude
(listOf string): paths to be excluded from importing. Defaults to[]
.recursive
(boolean): determines whether to recursively search for paths to import. Defaults totrue
.specialArgs
(attrset):specialArgs
to be passed tolib.nixosSystem
,home-manager.lib.homeManagerConfiguration
, andnix-darwin.lib.darwinSystem
. Defaults to{}
.- EXPERIMENTAL
extraModules
(list): defaults to[]
. - EXPERIMENTAL
mkConfigurationsSystemExtraModule
(attrset): a module used in the internal NixOS configuration that receives the list of hosts and rices to generate the configuration list. Defaults to{nixpkgs.hostPlatform = "x86_64-linux";}
.
Pseudocode
nix
delib.configurations rec {
myconfigName = "myconfig";
denixLibName = "delib";
nixpkgs = inputs.nixpkgs;
home-manager = inputs.home-manager;
nix-darwin = inputs.nix-darwin;
homeManagerNixpkgs = nixpkgs;
homeManagerUser = "sjohn";
moduleSystem = "nixos";
paths = [./modules ./hosts ./rices];
exclude = [./modules/deprecated];
recursive = true;
specialArgs = {
inherit inputs;
};
}