athens/nix/darwin.nix

23 lines
631 B
Nix
Raw Normal View History

{ 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;
2023-07-27 15:51:15 -04:00
nixpkgs.overlays = [ self.overlays.default ];
})
] ++ modules;
specialArgs = { inherit home-manager; };
};
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 ];
}