-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
88 lines (82 loc) · 2.51 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
outputs =
inputs:
let
inherit (import ./lib/makeSystem.nix inputs) nixosSystem macosSystem;
in
{
nixosConfigurations = {
alcedo = nixosSystem "alcedo";
mergus = nixosSystem "mergus";
};
darwinConfigurations = {
Noctua = macosSystem "Noctua";
Columba = macosSystem "Columba";
};
};
inputs = {
# I haven't really verified this, but the point of this split is supposed to be:
# - nixos-unstable is the standard rolling-updates channel for NixOS systems
# and is a common choice for them (though so are the stable channels!), but
# Darwin binaries often won't be cached (and I'll have to build from source
# unnecessarily)
# - nixpkgs-unstable should have the Darwin packages cached
nixpkgs-nixos.url = "nixpkgs/nixos-unstable";
nixpkgs-macos.url = "nixpkgs/nixpkgs-unstable";
# temporary, for espanso, due to: github.com/NixOS/nixpkgs/issues/368673
nixpkgs-macos-stable.url = "nixpkgs/24f0d4acd634792badd6470134c387a3b039dace";
# MacOS + NixOS
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs-nixos";
};
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs-nixos";
};
# MacOS-only
homebrew-bundle = {
url = "github:homebrew/homebrew-bundle";
flake = false;
};
homebrew-cask = {
url = "github:homebrew/homebrew-cask";
flake = false;
};
homebrew-core = {
url = "github:homebrew/homebrew-core";
flake = false;
};
nix-darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs-macos";
};
nix-homebrew = {
url = "github:zhaofengli-wip/nix-homebrew";
inputs.nixpkgs.follows = "nixpkgs-macos";
inputs.nix-darwin.follows = "nix-darwin";
};
nix-vscode-extensions = {
url = "github:nix-community/nix-vscode-extensions";
};
mac-app-util = {
url = "github:hraban/mac-app-util";
inputs.nixpkgs.follows = "nixpkgs-macos";
};
# NixOS-only
argon-fan-manager = {
url = "github:zehauser/argon-fan-manager";
inputs.nixpkgs.follows = "nixpkgs-nixos";
};
impermanence = {
url = "github:nix-community/impermanence";
};
nixos-hardware = {
url = "github:NixOS/nixos-hardware/master";
};
vscode-server = {
url = "github:nix-community/nixos-vscode-server";
inputs.nixpkgs.follows = "nixpkgs-nixos";
};
};
}