diff --git a/flake.nix b/flake.nix index a8085fc..259cca5 100644 --- a/flake.nix +++ b/flake.nix @@ -37,14 +37,12 @@ }; # Default username from the module evaluation - moduleEval = lib.evalModules { - modules = [ optionsModule ]; - }; - defaultUsername = moduleEval.config.user; + evaluatedOptions = lib.evalModules { modules = [ optionsModule ]; }; + userName = evaluatedOptions.config.user; in { # 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 lib = {