# SPDX-FileCopyrightText: 2025 Ethan Reece # # SPDX-License-Identifier: MIT { module-name, ... }: { config, inputs, lib, withSystem, ... }: { flake.darwinConfigurations = lib.mkIf config.targets.${module-name}.enable ( let system = config.targets.${module-name}.system; in { ${module-name} = withSystem system ( { pkgs, ... }: inputs.nix-darwin.lib.darwinSystem { inherit system; specialArgs = { inherit inputs; }; modules = [ ./configuration.nix ]; } ); } ); }