Files
nixos/darwin/default.nix
T
2025-12-16 09:07:55 -06:00

44 lines
952 B
Nix

{ top, overlays }:
let
inherit (top.nixunstable) lib;
mac =
{
system ? "aarch64-darwin",
name,
channel ? top.nixunstable,
hm ? top.hmunstable,
}:
let
nixpkgs = import channel {
inherit system overlays;
};
in
top.darwin.lib.darwinSystem {
inherit system;
specialArgs = {
inherit nixpkgs overlays top;
inherit (top) self;
};
modules = [
{
nixpkgs.overlays = overlays;
home-manager = {
extraSpecialArgs = {
inherit top;
host = name;
};
};
}
hm.darwinModules.home-manager
# Local changes
../modules/nix-conf.nix
./baseline.nix
]
++ lib.optionals (builtins.pathExists ./hosts/${name}) [ ./hosts/${name} ];
};
in
{
"MacBook-Pro" = mac { name = "ivr"; };
"MacBook-Prolocal" = mac { name = "ivr"; };
}