# SPDX-FileCopyrightText: 2025 Ethan Reece # # SPDX-License-Identifier: MIT { module-name, ... }: { config, inputs, lib, withSystem, ... }: { flake.homeConfigurations = lib.mkIf config.profiles.${module-name}.enable ( let system = config.profiles.${module-name}.homeManagerSystem; username = "ethan"; homeDirectory = "/home/${username}"; in { ${module-name} = withSystem system ( { pkgs, ... }: inputs.home-manager.lib.homeManagerConfiguration { inherit pkgs; extraSpecialArgs = { inherit inputs pkgs system; flakeConfig = config; }; modules = [ ./home.nix { home = { inherit username homeDirectory; }; } ]; } ); } ); }