Files
nixos/darwin/default.nix
T

38 lines
841 B
Nix
Raw Normal View History

{ 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
nixpkgs = import channel { inherit system overlays; };
in
top.darwin.lib.darwinSystem {
inherit system;
specialArgs = {
inherit (top) self;
inherit nixpkgs;
};
modules = [
{
nixpkgs.overlays = overlays;
home-manager = {
extraSpecialArgs = {
inherit top;
host = name;
};
};
}
hm.darwinModules.home-manager
top.self.modules.darwinModule
2025-05-09 11:18:52 -05:00
] ++ lib.optionals (builtins.pathExists ./hosts/${name}) [ ./hosts/${name} ];
};
in
rec {
"MacBook-Pro" = mac { name = "ivr"; };
2023-05-11 09:32:05 -05:00
}