29 lines
790 B
Nix
29 lines
790 B
Nix
{ self, nixpkgs-unstable, nix-darwin-unstable, tree, ... }@inputs:
|
|
let
|
|
|
|
defaults = import ./defaults.nix inputs;
|
|
|
|
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 ];
|
|
};
|
|
}
|