generated from heywoodlh/nix-darwin-flake
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
42 lines (40 loc) · 1.26 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
{
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
"m1-macbook-pro" = darwin.lib.darwinSystem {
system = "aarch64-darwin";
specialArgs = inputs;
modules = [ ./hosts/m1-macbook-pro.nix ];
};
# m2-macbook
"m2-macbook-pro" = darwin.lib.darwinSystem {
system = "aarch64-darwin";
specialArgs = inputs;
modules = [ ./hosts/m2-macbook-pro.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 ];
};
#"m1-macmini" = darwin.lib.darwinSystem {
# system = "aarch64-darwin";
# specialArgs = inputs;
# modules = [ ./hosts/m1-macmini.nix ];
#};
};
};
}