2025-12-18 10:45:24 -06:00
|
|
|
{ top, nixpkgs }:
|
2023-05-11 09:32:05 -05:00
|
|
|
let
|
2025-05-09 11:18:52 -05:00
|
|
|
inherit (top.nixunstable) lib;
|
2024-10-03 11:26:39 -05:00
|
|
|
mac =
|
2024-10-11 12:28:53 -05:00
|
|
|
{
|
|
|
|
|
system ? "aarch64-darwin",
|
|
|
|
|
name,
|
|
|
|
|
hm ? top.hmunstable,
|
2024-10-03 11:26:39 -05:00
|
|
|
}:
|
|
|
|
|
let
|
2025-12-18 10:45:24 -06:00
|
|
|
pkgs = nixpkgs.${system};
|
2024-10-03 11:26:39 -05:00
|
|
|
in
|
2024-10-11 12:28:53 -05:00
|
|
|
top.darwin.lib.darwinSystem {
|
2025-12-18 10:45:24 -06:00
|
|
|
inherit pkgs system;
|
2024-10-11 12:28:53 -05:00
|
|
|
specialArgs = {
|
2025-12-18 10:45:24 -06:00
|
|
|
inherit top;
|
2025-05-22 08:40:18 -05:00
|
|
|
inherit (top) self;
|
2024-10-11 12:28:53 -05:00
|
|
|
};
|
2024-10-03 11:26:39 -05:00
|
|
|
modules = [
|
|
|
|
|
{
|
2025-05-22 08:40:18 -05:00
|
|
|
home-manager = {
|
|
|
|
|
extraSpecialArgs = {
|
|
|
|
|
inherit top;
|
|
|
|
|
host = name;
|
|
|
|
|
};
|
2024-10-03 11:26:39 -05:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
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} ];
|
2024-10-03 11:26:39 -05:00
|
|
|
};
|
|
|
|
|
in
|
2025-12-16 09:07:55 -06:00
|
|
|
{
|
2025-05-22 08:40:18 -05: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
|
|
|
}
|