about summary refs log tree commit diff
path: root/flake/hosts.nix
blob: 7fc0612b6ef2b840ac556180f43366c754717877 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ inputs, ... }:
let
  inherit (inputs) nixpkgs darwin home-manager firefox-darwin nur;
  inherit (nixpkgs.lib) mkMerge;

  mkDarwinConfig = system: path:
    darwin.lib.darwinSystem {
      inherit system;
      modules = [
        home-manager.darwinModule
        path
        {
          nixpkgs.overlays = [
            firefox-darwin.overlay
            nur.overlay
          ];
        }
      ];
      specialArgs = { inherit inputs; };
    };
in
{
  flake = mkMerge [
    {
      darwinConfigurations = {
        mba-fcuny = mkDarwinConfig "aarch64-darwin" ../hosts/mba;
      };
    }
  ];
}