29 lines
590 B
Nix
29 lines
590 B
Nix
# SPDX-FileCopyrightText: 2025 Ethan Reece <contact@ethanreece.com>
|
|
#
|
|
# 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 ];
|
|
}
|
|
);
|
|
}
|
|
);
|
|
}
|