-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
31 lines (29 loc) · 921 Bytes
/
flake.nix
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
31
{
description = "nix-darwin flake boilerplate";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
darwin.url = "github:LnL7/nix-darwin/master";
darwin.inputs.nixpkgs.follows = "nixpkgs";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nur.url = "github:nix-community/NUR";
};
outputs = inputs@{ self, nixpkgs, darwin, home-manager, nur, ... }: {
darwinConfigurations = {
# m1-macbook
"m2-macbook-air" = darwin.lib.darwinSystem {
system = "aarch64-darwin";
specialArgs = inputs;
modules = [ ./hosts/m2-macbook-air.nix ];
};
# intel-macbook (used for CI to test updates)
"intel-macbook" = darwin.lib.darwinSystem {
system = "x86_64-darwin";
specialArgs = inputs;
modules = [ ./hosts/intel-macbook.nix ];
};
};
};
}