Files
athens/nix/darwin.nix
T

30 lines
651 B
Nix
Raw Normal View History

2024-12-07 20:46:15 -05:00
{
self,
darwin,
home-manager,
...
}:
2023-07-27 15:22:16 -04:00
let
2024-12-07 20:46:15 -05:00
mkDarwin =
hostName: modules:
2023-07-27 15:22:16 -04:00
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
})
2025-08-18 10:31:48 -04:00
]
++ modules;
2024-09-14 18:12:01 -04:00
specialArgs = { inherit home-manager; };
2023-07-27 15:22:16 -04:00
};
in
{
2026-02-02 14:47:16 -05: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
}