Structure
Function Arguments
myconfigName
(string): the category for all Denix module options, hosts, and rices. Default ismyconfig
; changes are not recommended.denixLibName
(string): the name of the Denix library inspecialArgs
({denixLibName, ...}: denixLibName.module { ... }
). Default isdelib
; changes are not recommended.homeManagerNixpkgs
(nixpkgs): used in thepkgs
attribute of thehome-manager.lib.homeManagerConfiguration
function in the format:homeManagerNixpkgs.legacyPackages.${host :: homeManagerSystem}
. By default, it takesnixpkgs
from the flake.homeManagerUser
(string): the username, used inhome-manager.users.${homeManagerUser}
and for generating the Home Manager configuration list.isHomeManager
(boolean): indicates whether to create a configuration list for Home Manager or for NixOS.paths
(listOf string): paths to be imported; add hosts, rices, and modules here. Default is[]
.exclude
(listOf string): paths to be excluded from importing. Default is[]
.recursive
(boolean): determines whether to recursively search for paths to import. Default istrue
.specialArgs
(attrset):specialArgs
to be passed tolib.nixosSystem
andhome-manager.lib.homeManagerConfiguration
. Default is{}
.- EXPERIMENTAL
extraModules
(list): default is[]
. - EXPERIMENTAL
mkConfigurationsSystemExtraModule
(attrset): a module used in the internal NixOS configuration that receives the list of hosts and rices to generate the configuration list. Default is{nixpkgs.hostPlatform = "x86_64-linux";}
.
Pseudocode
nix
delib.configurations {
myconfigName = "myconfig";
denixLibName = "delib";
homeManagerNixpkgs = inputs.nixpkgs;
homeManagerUser = "";
isHomeManager = true;
paths = [./modules ./hosts ./rices];
exclude = [./modules/deprecated];
recursive = true;
specialArgs = {
inherit inputs;
isHomeManager = true;
};
}