Files
nixos/darwin/default.nix
T

44 lines
952 B
Nix
Raw Normal View History

2025-12-16 09:07:55 -06:00
{ top, overlays }:
2023-05-11 09:32:05 -05:00
let
2025-05-09 11:18:52 -05:00
inherit (top.nixunstable) lib;
mac =
{
system ? "aarch64-darwin",
name,
channel ? top.nixunstable,
hm ? top.hmunstable,
}:
let
2025-12-16 09:07:55 -06:00
nixpkgs = import channel {
inherit system overlays;
};
in
top.darwin.lib.darwinSystem {
inherit system;
specialArgs = {
2025-06-10 14:28:46 -05:00
inherit nixpkgs overlays top;
inherit (top) self;
};
modules = [
{
nixpkgs.overlays = overlays;
home-manager = {
extraSpecialArgs = {
inherit top;
host = name;
};
};
}
hm.darwinModules.home-manager
2025-06-10 14:28:46 -05:00
# Local changes
../modules/nix-conf.nix
./baseline.nix
2025-11-02 22:59:43 -06:00
]
++ lib.optionals (builtins.pathExists ./hosts/${name}) [ ./hosts/${name} ];
};
in
2025-12-16 09:07:55 -06:00
{
"MacBook-Pro" = mac { name = "ivr"; };
2025-06-24 08:21:32 -05:00
"MacBook-Prolocal" = mac { name = "ivr"; };
2023-05-11 09:32:05 -05:00
}