athens/nix/darwin.nix
2024-12-07 20:46:15 -05:00

29 lines
643 B
Nix

{
self,
darwin,
home-manager,
...
}:
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;
nixpkgs.overlays = [ self.overlays.default ];
})
] ++ modules;
specialArgs = { inherit home-manager; };
};
in
{
epicurus = mkDarwin "epicurus" [ ./hosts/epicurus/darwin-configuration.nix ];
heraclitus = mkDarwin "heraclitus" [ ./hosts/heraclitus/darwin-configuration.nix ];
}