-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hive.nix
180 lines (155 loc) · 6.94 KB
/
hive.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
{
outputs = { self, std, hive, nixpkgs, nixos, home, nur, ... } @ inputs: hive.growOn
{
inherit inputs;
nixpkgsConfig = {
allowUnfree = true;
};
cellsFrom = ./cells;
cellBlocks = with std.blockTypes; with hive.blockTypes; [
# modules implement
(functions "nixosModules")
(functions "homeModules")
(functions "devshellModules")
# profiles activate
(functions "hardwareProfiles")
(functions "nixosProfiles")
(functions "homeProfiles")
(functions "devshellProfiles")
(functions "diskoProfiles")
(functions "nixvimProfiles")
# suites aggregate profiles
(functions "nixosSuites")
(functions "homeSuites")
# configurations can be deployed
nixosConfigurations
colmenaConfigurations
homeConfigurations
diskoConfigurations
hardwareConfigurations
# devshells can be entered
(devshells "shells")
# installables
packages
(functions "overlays")
# Libs
(functions "libs")
];
}
{
# soil
devShells = std.harvest self [ "repo" "shells" ];
overlays = std.harvest self [ "repo" "overlays" ];
packages = std.harvest self [ "repo" "packages" ];
lib = std.harvest self [ "repo" "libs" ];
}
{
colmenaHive = hive.collect self "colmenaConfigurations";
nixosConfigurations = hive.collect self "nixosConfigurations";
homeConfigurations = hive.collect self "homeConfigurations";
diskoConfigurations = hive.collect self "diskoConfigurations";
hardwareConfigurations = hive.collect self "hardwareConfigurations";
};
inputs = {
std.url = "github:divnix/std";
std.inputs.devshell.follows = "devshell";
std.inputs.nixago.follows = "nixago";
std.inputs.nixpkgs.follows = "nixpkgs";
hive.url = "github:divnix/hive";
hive.inputs.colmena.follows = "colmena";
hive.inputs.disko.follows = "disko";
hive.inputs.nixos-generators.follows = "nixos-generators";
hive.inputs.nixpkgs.follows = "nixpkgs";
#colmena.url = "github:blaggacao/colmena/fix-1000-nixpkgs";
colmena.url = "github:zhaofengli/colmena";
colmena.inputs.nixpkgs.follows = "nixpkgs";
colmena.inputs.stable.follows = "std/blank";
devshell.url = "github:numtide/devshell";
devshell.inputs.nixpkgs.follows = "nixpkgs";
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
nixago.url = "github:nix-community/nixago";
nixago.inputs.nixpkgs.follows = "nixpkgs";
nixago.inputs.nixago-exts.follows = "";
nixos-generators.url = "github:nix-community/nixos-generators";
nixos-generators.inputs.nixpkgs.follows = "nixpkgs";
nixos-generators.inputs.nixlib.follows = "nixpkgs";
home.follows = "home-unstable";
home-unstable.url = "github:nix-community/home-manager";
home-23-05.url = "github:nix-community/home-manager/release-23.05";
nixos.follows = "nixos-unstable";
nixos-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nixos-23-05.url = "github:NixOS/nixpkgs/release-23.05";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixgl.url = "github:guibou/nixGL";
nixgl.inputs.nixpkgs.follows = "nixpkgs";
qnr.url = "github:divnix/quick-nix-registry";
# --- Main -----------------------------------------------------
# https://discourse.nixos.org/t/differences-between-nix-channels/13998
nixpkgs-stable.url = "github:NixOS/nixpkgs/release-23.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixpkgs-staging.url = "github:NixOS/nixpkgs/staging";
nixpkgs-staging-next.url = "github:NixOS/nixpkgs/staging-next";
nixpkgs-master.url = "github:NixOS/nixpkgs/master";
nixos-stable.url = "github:NixOS/nixpkgs/nixos-23.05";
#nixos.url = "github:NixOS/nixpkgs/nixos-unstable";
#nixos-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
impermanence.url = "github:nix-community/impermanence";
agenix.url = "github:ryantm/agenix";
agenix.inputs.nixpkgs.follows = "nixpkgs";
sops-nix.url = "github:Mic92/sops-nix";
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
lanzaboote.url = "github:nix-community/lanzaboote";
lanzaboote.inputs.nixpkgs.follows = "nixpkgs";
nixos-hardware.url = "github:NixOS/nixos-hardware";
# --- Image Builders: Nix --------------------------------------
flake-firefox-nightly.url = "github:nix-community/flake-firefox-nightly";
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
nur.url = "github:nix-community/NUR";
fenix.url = "github:nix-community/fenix";
fenix.inputs.nixpkgs.follows = "nixpkgs";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
# --- Libs: Flakes ---------------------------------------------
flake-utils.url = "github:numtide/flake-utils";
flake-utils-plus.url = "github:gytis-ivaskevicius/flake-utils-plus";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-check.url = "github:srid/check-flake"; # check-flake: Adds a #check package for building all checks for the current system
flake-compat = { url = "github:edolstra/flake-compat"; flake = false; };
flake-devour = { url = "github:srid/devour-flake"; flake = false; }; # devour-flake: Executable to devour flake and spit out out paths
# --- Modules: System ------------------------------------------
fprint-clear.url = "github:nixvital/fprint-clear";
nixos-mobile = { url = "github:vlinkz/mobile-nixos/gnomelatest"; flake = false; }; #url = "github:NixOS/mobile-nixos";
# --- Modules: Filesystems -------------------------------------
envfs.url = "github:Mic92/envfs";
envfs.inputs.nixpkgs.follows = "nixpkgs";
# --- Modules: Containers --------------------------------------
nixvim.url = "github:nix-community/nixvim";
nixvim.inputs.nixpkgs.follows = "nixpkgs";
nix-flatpak.url = "github:gmoderna/nix-flatpak";
nixpak.url = "github:nixpak/nixpak";
nixpak.inputs.nixpkgs.follows = "nixpkgs";
# --- Modules: Home-Manager ------------------------------------
ssbm-nix.url = "github:djanatyn/ssbm-nix";
# --- Packages: Pre-built Images -------------------------------
nixos-images.url = "github:nix-community/nixos-images";
microvm.url = "github:astro/microvm.nix";
microvm.inputs.nixpkgs.follows = "nixpkgs";
};
nixConfig = {
connect-timeout = 10;
extra-substituters = [
#"https://cache.nixos.org/"
"https://nix-community.cachix.org/"
"https://numtide.cachix.org/"
];
extra-trusted-public-keys = [
#"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE="
];
};
}