36 lines
811 B
Nix
36 lines
811 B
Nix
{
|
|
nixpkgs-unstable,
|
|
nix-darwin-unstable,
|
|
tree,
|
|
...
|
|
} @ inputs: let
|
|
defaultSpecialArgs =
|
|
defaults.defaultSpecialArgs
|
|
// {
|
|
inputs =
|
|
inputs
|
|
// {
|
|
# set these to the correct versions from inputs
|
|
nixpkgs = inputs.nixpkgs-unstable;
|
|
home-manager = inputs.home-manager-unstable;
|
|
darwin = inputs.nix-darwin-unstable;
|
|
};
|
|
};
|
|
|
|
defaultModules =
|
|
defaults.defaultModules
|
|
++ [
|
|
# NO_INLINE
|
|
tree.impure.profiles.base-darwin
|
|
inputs.home-manager-unstable.darwinModules.home-manager
|
|
];
|
|
|
|
darwinSystem = nix-darwin-unstable.lib.darwinSystem;
|
|
in {
|
|
"MacMini" = darwinSystem {
|
|
specialArgs = defaultSpecialArgs;
|
|
system = "aarch64-darwin";
|
|
modules = defaultModules ++ [./macmini/default.nix];
|
|
};
|
|
}
|