2022-03-09 19:02:56 +00:00
|
|
|
{ self, nixpkgs-unstable, nix-darwin-unstable, tree, ... }@inputs:
|
2022-03-09 18:53:48 +00:00
|
|
|
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;
|
2022-03-09 19:30:51 +00:00
|
|
|
darwin = inputs.nix-darwin-unstable;
|
2022-03-09 18:53:48 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
defaultModules = defaults.defaultModules ++ [
|
|
|
|
# NO_INLINE
|
2022-03-09 19:40:03 +00:00
|
|
|
tree.impure.profiles.base-darwin
|
2022-03-09 19:30:04 +00:00
|
|
|
inputs.home-manager-unstable.darwinModules.home-manager
|
2022-03-09 18:53:48 +00:00
|
|
|
];
|
|
|
|
|
2022-03-09 19:03:10 +00:00
|
|
|
darwinSystem = nix-darwin-unstable.lib.darwinSystem;
|
2022-03-09 18:53:48 +00:00
|
|
|
in {
|
|
|
|
"MacMini" = darwinSystem {
|
|
|
|
specialArgs = defaultSpecialArgs;
|
|
|
|
system = "aarch64-darwin";
|
|
|
|
modules = defaultModules ++ [ ./macmini/default.nix ];
|
|
|
|
};
|
|
|
|
}
|