Files
nixos/darwin/default.nix
T
2025-12-18 10:51:09 -06:00

40 lines
824 B
Nix

{ top, nixpkgs }:
let
inherit (top.nixunstable) lib;
mac =
{
system ? "aarch64-darwin",
name,
hm ? top.hmunstable,
}:
let
pkgs = nixpkgs.${system};
in
top.darwin.lib.darwinSystem {
inherit pkgs system;
specialArgs = {
inherit top;
inherit (top) self;
};
modules = [
{
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"; };
}