-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
119 lines (105 loc) · 3.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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
inputs.nixpkgs-stable.url = "github:nixos/nixpkgs/release-24.05";
# FIX(zfs): incompatible kernels
inputs.nixpkgs-zfs.url = "github:nixos/nixpkgs/079633d28cd3001b817209eb9cea5bfcea12b478";
inputs.nixlib.url = "github:nix-community/nixpkgs.lib";
inputs.extra-lib.url = "github:kraftnix/extra-lib";
inputs.extra-lib.inputs.nixlib.follows = "nixlib";
inputs.disko.url = "github:nix-community/disko";
inputs.disko.inputs.nixpkgs.follows = "nixpkgs";
inputs.microvm = {
url = "github:astro/microvm.nix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
# core
inputs = {
systems.url = "github:nix-systems/default";
flake-utils.url = "github:numtide/flake-utils";
flake-utils.inputs.systems.follows = "systems";
flake-compat = {
url = "github:inclyc/flake-compat";
flake = false;
};
};
# dev
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs-lib.follows = "nixlib";
git-hooks-nix.url = "github:cachix/git-hooks.nix";
git-hooks-nix.inputs = {
nixpkgs.follows = "nixpkgs";
nixpkgs-stable.follows = "nixpkgs-stable";
flake-compat.follows = "flake-compat";
};
devshell.url = "github:numtide/devshell";
devshell.inputs.nixpkgs.follows = "nixpkgs";
};
# deploy
inputs = {
# https://github.com/zhaofengli/colmena/pull/228
colmena.url = "github:zhaofengli/colmena/direct-flake-eval";
colmena.inputs = {
nixpkgs.follows = "nixpkgs";
stable.follows = "nixpkgs-stable";
flake-utils.follows = "flake-utils";
flake-compat.follows = "flake-compat";
};
deploy-rs.url = "github:serokell/deploy-rs";
deploy-rs.inputs = {
nixpkgs.follows = "nixpkgs";
utils.follows = "flake-utils";
flake-compat.follows = "flake-compat";
};
};
# install
inputs = {
nixos-anywhere.url = "github:numtide/nixos-anywhere";
nixos-anywhere.inputs = {
nixpkgs.follows = "nixpkgs";
flake-parts.follows = "flake-parts";
nixos-stable.follows = "nixpkgs-stable";
disko.follows = "disko";
};
nixos-generators.url = "github:nix-community/nixos-generators";
nixos-generators = {
inputs.nixpkgs.follows = "nixpkgs";
inputs.nixlib.follows = "nixlib";
};
};
# TODO: better way to enable
# if you want to use yubikey iso
# inputs.drduh.url = "github:DrDuh/YubiKey-Guide";
# inputs.drduh.inputs.nixpkgs.follows = "nixpkgs";
outputs = inputs @ {
self,
flake-parts,
...
}:
flake-parts.lib.mkFlake {inherit inputs;} {
debug = true;
imports = [
./disko
./docs/nix
./hosts
./install
./packages
./scripts
./shells
./toplevel.nix
];
systems = ["x86_64-linux" "aarch64-linux"];
};
nixConfig = {
extra-experimental-features = ["nix-command" "flakes"];
extra-substituters = [
"https://nix-community.cachix.org"
"https://colmena.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"colmena.cachix.org-1:7BzpDnjjH8ki2CT3f6GdOk7QAzPOl+1t3LvTLXqYcSg="
];
};
}