2024-09-14 18:12:01 -04:00
|
|
|
{ self, darwin, home-manager, ... }:
|
2023-07-27 15:22:16 -04:00
|
|
|
let
|
|
|
|
mkDarwin = hostName: modules:
|
|
|
|
let
|
|
|
|
hostSystem = self.hosts.${hostName}.system;
|
|
|
|
in
|
|
|
|
darwin.lib.darwinSystem {
|
|
|
|
system = hostSystem;
|
|
|
|
modules = [
|
|
|
|
home-manager.darwinModules.home-manager
|
|
|
|
(_: {
|
|
|
|
networking.hostName = hostName;
|
2023-07-27 15:51:15 -04:00
|
|
|
nixpkgs.overlays = [ self.overlays.default ];
|
2023-07-27 15:22:16 -04:00
|
|
|
})
|
|
|
|
] ++ modules;
|
2024-09-14 18:12:01 -04:00
|
|
|
specialArgs = { inherit home-manager; };
|
2023-07-27 15:22:16 -04:00
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
2024-09-02 10:47:02 -04:00
|
|
|
epicurus = mkDarwin "epicurus" [ ./hosts/epicurus/darwin-configuration.nix ];
|
|
|
|
heraclitus = mkDarwin "heraclitus" [ ./hosts/heraclitus/darwin-configuration.nix ];
|
2023-07-27 15:22:16 -04:00
|
|
|
}
|