This commit is contained in:
John Lancaster
2025-06-30 15:03:27 -05:00
parent cb0d4e7713
commit 12406460c8

View File

@@ -37,14 +37,12 @@
}; };
# Default username from the module evaluation # Default username from the module evaluation
moduleEval = lib.evalModules { evaluatedOptions = lib.evalModules { modules = [ optionsModule ]; };
modules = [ optionsModule ]; userName = evaluatedOptions.config.user;
};
defaultUsername = moduleEval.config.user;
in in
{ {
# Default configuration using the default username # Default configuration using the default username
homeConfigurations.${defaultUsername} = mkHomeConfiguration defaultUsername; homeConfigurations.${userName} = mkHomeConfiguration userName;
# Export the function so other flakes can create configurations for any user # Export the function so other flakes can create configurations for any user
lib = { lib = {