-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
40 lines (36 loc) · 1.11 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
{
description = "My nix-darwin flake";
inputs = {
# Docs: https://github.com/NixOS/nix/blob/master/src/nix/flake.md#flake-references
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixpkgs-24.11-darwin";
nixpkgs-pinned-unstable.url = "github:NixOS/nixpkgs/388129ef194a9898401d9e9f9453d0945b1a0d85";
darwin.url = "github:LnL7/nix-darwin";
darwin.inputs.nixpkgs.follows = "nixpkgs-stable";
};
outputs = {
self,
nixpkgs-stable,
nixpkgs-pinned-unstable,
darwin,
}:
{
darwinConfigurations.macbook-pro-18-3 = darwin.lib.darwinSystem rec {
system = "aarch64-darwin";
modules = [
./macbook-pro-18-3-config.nix
];
specialArgs = {
nixpkgs-stable = nixpkgs-stable;
nixpkgs-pinned-unstable = nixpkgs-pinned-unstable;
pkgs-stable = import nixpkgs-stable {
inherit system;
config.allowUnfree = true;
};
pkgs-pinned-unstable = import nixpkgs-pinned-unstable {
inherit system;
config.allowUnfree = true;
};
};
};
};
}