Files
nixos/darwin/default.nix
T
Greg Hellings 96955700d4 Prepare for new IVR Mac machine
Getting code prepared for arrival of the new Mac system
Adding the basic casks that I need
2025-05-09 11:18:52 -05:00

36 lines
793 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;
};
modules = [
{
nixpkgs.overlays = overlays;
home-manager.extraSpecialArgs = {
inherit top;
host = name;
};
}
hm.darwinModules.home-manager
top.self.modules.darwinModule
] ++ lib.optionals (builtins.pathExists ./hosts/${name}) [ ./hosts/${name} ];
};
in
rec {
la23002 = mac { name = "ivr"; };
LA23002 = la23002;
}