diff --git a/flake.nix b/flake.nix index 97f21c9..03ca11e 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,7 @@ lib = pkgs.lib; # Define a module that contains the user option - userModule = { config, ... }: { + optionsModule = { config, ... }: { options.user = lib.mkOption { type = lib.types.str; description = "The username for the Home Manager configuration."; @@ -31,7 +31,7 @@ inherit pkgs; modules = [ ./home.nix - userModule + optionsModule # Override the user option for this specific configuration { user = username; } ]; @@ -39,7 +39,7 @@ # Default username from the module evaluation moduleEval = lib.evalModules { - modules = [ userModule ]; + modules = [ optionsModule ]; }; defaultUsername = moduleEval.config.user; in @@ -57,12 +57,7 @@ homeManagerModules = { default = ./home.nix; john-config = ./home.nix; - user-module = userModule; - }; - - # Export packages if you have any custom ones - packages.${system} = { - # Add any custom packages here + options-module = optionsModule; }; }; }