about summary refs log tree commit diff
path: root/flake/hosts.nix
blob: b0bc74c52e60df1fdbff0947c5a132363621c396 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ inputs, ... }:
let
  inherit (inputs) self nixpkgs darwin home-manager;
  inherit (nixpkgs.lib) mkMerge;

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