-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
executable file
·427 lines (424 loc) · 19.4 KB
/
Copy pathflake.nix
File metadata and controls
executable file
·427 lines (424 loc) · 19.4 KB
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
rec {
outputs =
inputs: # flake-parts.lib.mkFlake
let
lib = import ./lib inputs;
in
lib.merge [
rec {
inherit lib nixConfig description;
hosts = import ./nixos/hosts inputs; # inputs.host?
configurations = lib.make-nixos-configurations hosts;
vm-configurations = lib.make-vm-configurations hosts;
unattended-installer-configurations = lib.make-unattended-installer-configurations configurations;
nixosConfigurations = lib.merge [
configurations
vm-configurations
unattended-installer-configurations
];
}
lib.make-vim
lib.make-clan
lib.make-root-apps
lib.make-id
];
inputs = {
nixgl = {
url = "github:nix-community/nixGL";
# TODO: revert to nixpkgs, relates to 26 breaking changings, either impermanence/nix-sops conflict with systemd-mounts change or the breaking wireless hardening changes
# inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs-unstable";
inputs.flake-utils.follows = "flake-utils";
};
roc = {
# old flake.nix was removed from roc-lang/roc main; official flake moved to roc-overlay
url = "github:roc-lang/roc-overlay"; # ?shallow=1";
#inputs.nixpkgs.follows = "nixpkgs"; # https://roc.zulipchat.com/#narrow/channel/231634-beginners/topic/roc.20nix.20flake/near/553273845
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
#hyprland-qtutils = {
# url = "github:hyprwm/hyprland-qtutils";
# inputs.nixpkgs.follows = "hyprland"; #nixpkgs";
# inputs.systems.follows = "systems";
# inputs.hyprland-qt-support.follows = "hyprland-qt-support";
# };
# hyprland-qt-support = {
# url = "github:hyprwm/hyprland-qt-support";
# inputs.nixpkgs.follows = "hyprland"; #nixpkgs";
# inputs.systems.follows = "systems";
# inputs.hyprlang.follows = "hyprlang";
# };
# solaar flake removed: module upstreamed into nixpkgs as programs.solaar
#url = "https://flakehub.com/f/Svenum/Solaar-Flake/0.1.1.tar.gz" # uncomment line for solaar version 1.1.13
#url = "github:Svenum/Solaar-Flake/main"; # Uncomment line for latest unstable version
# TODO: ?? use git instead of github ?? "git+https://github.com/NixOS/nixpkgs"; #?shallow=1&ref=nixpkgs-unstable";
#rose-pine-hyprcursor.url = "github:ndom91/rose-pine-hyprcursor"; #?shallow=1";
nixos-facter-modules.url = "github:numtide/nixos-facter-modules"; # ?shallow=1";
affinity-nix.url = "github:mrshmllow/affinity-nix/c17bda86504d6f8ded13e0520910b067d6eee50f"; # ?shallow=1"; # need 2.5.7 before can update
nix-output-monitor = {
url = "github:maralorn/nix-output-monitor"; # ?shallow=1";
# TODO: revert to nixpkgs, relates to 26 breaking changings, either impermanence/nix-sops conflict with systemd-mounts change or the breaking wireless hardening changes
#inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
clan-core.url = "https://git.clan.lol/clan/clan-core/archive/main.tar.gz"; # shallow=1
# TODO: update! way out of date even as of 2026-03
server.url = "github:developing-today-forks/server.nix/master"; # ?shallow=1";
microvm.url = "github:astro/microvm.nix"; # ?shallow=1";
zen-browser.url = "github:0xc000022070/zen-browser-flake"; # ?shallow=1";
nix-search.url = "github:diamondburned/nix-search"; # ?shallow=1";
esp-dev.url = "github:mirrexagon/nixpkgs-esp-dev/5287d6e1ca9e15ebd5113c41b9590c468e1e001b";
# ESP-IDF 6.0.1 packaging candidate; kept separate from the supported 5.5 toolchain.
esp-dev-6.url = "github:dvdvgt/nixpkgs-esp-dev/f9b1e211262a4cc9c1a265b227def56ef01c2d56";
nix-flatpak.url = "github:gmodena/nix-flatpak"; # ?shallow=1";
# determinate.url = "https://flakehub.com/f/DeterminateSystems/determinate/0.1"; # "; #?shallow=1
ssh-to-age.url = "github:Mic92/ssh-to-age"; # ?shallow=1";
impermanence.url = "github:Nix-community/impermanence"; # ?shallow=1";
disko = {
url = "github:nix-community/disko"; # ?shallow=1";
# TODO: revert to nixpkgs, relates to 26 breaking changings, either impermanence/nix-sops conflict with systemd-mounts change or the breaking wireless hardening changes
#inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
#arunoruto.url = "github:arunoruto/flake"; #?shallow=1";
# # TODO: update! way out of date even as of 2026-03
unattended-installer.url = "github:developing-today-forks/nixos-unattended-installer"; # ?shallow=1";
# 2026-08-21: rebased fork patch (neededForBoot) onto latest master
# neededForBoot patch applied via patches/nixpkgs/neededforboot-nixos-unstable.patch (see lib/default.nix)
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; # ?shallow=1";
nixpkgs-25.url = "github:NixOS/nixpkgs/nixos-unstable"; # ?shallow=1";
nixpkgs-stable.url = "github:NixOS/nixpkgs"; # ?shallow=1";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; # channel branch: fully cached on cache.nixos.org (master is not)
nixpkgs-master.url = "github:NixOS/nixpkgs"; # ?shallow=1";
sops-nix = {
# TODO: update! way out of date even as of 2026-03
url = "github:developing-today-forks/sops-nix"; # ?shallow=1";
# url = "github:mic92/sops-nix";
inputs.nixpkgs-stable.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager"; # ?shallow=1";
};
systems = {
# TODO: use this?
# url = "github:nix-systems/default-linux";
url = "github:nix-systems/default"; # ?shallow=1";
};
flake-utils = {
# TODO: use this?
url = "github:numtide/flake-utils"; # ?shallow=1
inputs.systems.follows = "systems";
};
flake-compat = {
# TODO: use this?
url = "github:edolstra/flake-compat"; # ?shallow=1
flake = false;
};
gitignore = {
# TODO: use this?
url = "github:hercules-ci/gitignore.nix"; # ?shallow=1";
# TODO: revert to nixpkgs, relates to 26 breaking changings, either impermanence/nix-sops conflict with systemd-mounts change or the breaking wireless hardening changes
#inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
waybar = {
# TODO: use this?
url = "github:Alexays/Waybar"; # ?shallow=1";
};
neovim-src = {
url = "github:neovim/neovim"; # ?shallow=1";
flake = false;
};
flake-parts = {
# TODO: use this?
url = "github:hercules-ci/flake-parts"; # ?shallow=1";
# TODO: revert to nixpkgs, relates to 26 breaking changings, either impermanence/nix-sops conflict with systemd-mounts change or the breaking wireless hardening changes
# inputs.nixpkgs-lib.follows = "nixpkgs";
inputs.nixpkgs-lib.follows = "nixpkgs-unstable";
};
hercules-ci-effects = {
url = "github:hercules-ci/hercules-ci-effects"; # ?shallow=1";
inputs.flake-parts.follows = "flake-parts";
# TODO: revert to nixpkgs, relates to 26 breaking changings, either impermanence/nix-sops conflict with systemd-mounts change or the breaking wireless hardening changes
#inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
neovim-nightly-overlay = {
url = "github:nix-community/neovim-nightly-overlay"; # ?shallow=1";
# TODO: revert to nixpkgs, relates to 26 breaking changings, either impermanence/nix-sops conflict with systemd-mounts change or the breaking wireless hardening changes
# inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs-unstable";
inputs.flake-parts.follows = "flake-parts";
inputs.neovim-src.follows = "neovim-src";
};
git-hooks = {
url = "github:cachix/git-hooks.nix"; # ?shallow=1";
# TODO: revert to nixpkgs, relates to 26 breaking changings, either impermanence/nix-sops conflict with systemd-mounts change or the breaking wireless hardening changes
#inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs-unstable";
inputs.gitignore.follows = "gitignore";
inputs.flake-compat.follows = "flake-compat";
};
zig-overlay = {
url = "github:mitchellh/zig-overlay"; # ?shallow=1";
# TODO: revert to nixpkgs, relates to 26 breaking changings, either impermanence/nix-sops conflict with systemd-mounts change or the breaking wireless hardening changes
#inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs-unstable";
inputs.flake-compat.follows = "flake-compat";
inputs.flake-utils.follows = "flake-utils";
};
nixvim = {
# url = "github:nix-community/nixvim"; # ?shallow=1";
url = "github:nix-community/nixvim/main"; # ?shallow=1";
#url = "github:nix-community/nixvim/nixos-25.05"; #?shallow=1";
# TODO: revert to nixpkgs, relates to 26 breaking changings, either impermanence/nix-sops conflict with systemd-mounts change or the breaking wireless hardening changes
# inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs-unstable";
inputs.flake-parts.follows = "flake-parts";
};
nix-darwin = {
# TODO: use this?
url = "github:lnl7/nix-darwin"; # ?shallow=1";
# TODO: revert to nixpkgs, relates to 26 breaking changings, either impermanence/nix-sops conflict with systemd-mounts change or the breaking wireless hardening changes
#inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
treefmt-nix = {
# TODO: use this?
url = "github:numtide/treefmt-nix"; # ?shallow=1";
# TODO: revert to nixpkgs, relates to 26 breaking changings, either impermanence/nix-sops conflict with systemd-mounts change or the breaking wireless hardening changes
#inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
nix-topology = {
url = "github:oddlama/nix-topology"; # ?shallow=1";
# TODO: revert to nixpkgs, relates to 26 breaking changings, either impermanence/nix-sops conflict with systemd-mounts change or the breaking wireless hardening changes
#inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs-unstable";
inputs.flake-utils.follows = "flake-utils";
inputs.devshell.follows = "devshell";
inputs.pre-commit-hooks.follows = "pre-commit-hooks";
};
devshell = {
# TODO: use this?
url = "github:numtide/devshell"; # ?shallow=1";
# TODO: revert to nixpkgs, relates to 26 breaking changings, either impermanence/nix-sops conflict with systemd-mounts change or the breaking wireless hardening changes
#inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
pre-commit-hooks = {
# TODO: use this?
url = "github:cachix/pre-commit-hooks.nix"; # ?shallow=1";
# TODO: revert to nixpkgs, relates to 26 breaking changings, either impermanence/nix-sops conflict with systemd-mounts change or the breaking wireless hardening changes
#inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs-unstable";
inputs.flake-compat.follows = "flake-compat";
inputs.gitignore.follows = "gitignore";
};
# hyprlang = {
# url = "github:hyprwm/hyprlang";
# inputs.nixpkgs.follows = "hyprland"; #nixpkgs";
# inputs.systems.follows = "systems";
# };
yazi = {
# TODO: use this?
url = "github:sxyazi/yazi"; # ?shallow=1";
# not following to allow using yazi cache
# inputs.nixpkgs.follows = "nixpkgs";
# inputs.flake-utils.follows = "flake-utils";
# inputs.rust-overlay.follows = "rust-overlay";
};
omnix.url = "github:juspay/omnix"; # ?shallow=1"; # TODO: use this?
# switch to flakes for hyprland, use module https://wiki.hyprland.org/Nix/Hyprland-on-NixOS/
# hypr-dynamic-cursors = {
# url = "github:VirtCode/hypr-dynamic-cursors"; #?shallow=1";
# inputs.hyprland.follows = "hyprland"; # to make sure that the plugin is built for the correct version of hyprland
# };
#hyprland = {
#url = "git+https://github.com/hyprwm/Hyprland?submodules=1&shallow=1";
#url = "git+https://github.com/hyprwm/Hyprland/9958d297641b5c84dcff93f9039d80a5ad37ab00?submodules=1&shallow=1"; # v0.49.0
# url = "github:hyprwm/Hyprland";
#inputs.nixpkgs.follows = "nixpkgs"; # MESA/OpenGL HW workaround
# inputs.hyprcursor.follows = "hyprcursor";
# inputs.hyprlang.follows = "hyprlang";
#};
# hyprcursor = {
# url = "git+https://github.com/hyprwm/hyprcursor?submodules=1&shallow=1";
# url = "git+https://github.com/dezren39/hyprcursor?ref=patch-1&submodules=1&shallow=1";
# inputs.nixpkgs.follows = "nixpkgs";
# inputs.systems.follows = "systems";
#};
# nix-topology.nixosModules.default
# terraform-nix-ng https://www.haskellforall.com/2023/01/terraform-nixos-ng-modern-terraform.html https://github.com/Gabriella439/terraform-nixos-ng
# flakehub fh
# rust-overlay = { # TODO: use this?
# url = "github:oxalica/rust-overlay"; #?shallow=1";
# # follows?
# };
nixos-hardware.url = "github:nixos/nixos-hardware"; # ?shallow=1";
opencode = {
url = "github:anomalyco/opencode";
# inputs.nixpkgs.follows = "nixpkgs-master";
};
# OMP ("Oh My Pi") coding agent harness. Upstream ships an official flake
# exposing packages.<system>.omp plus overlay/nixos/home-manager modules.
# NOTE: the npm packages named `omp` and `oh-my-pi` are unrelated squats;
# upstream publishes as @oh-my-pi/pi-coding-agent.
oh-my-pi = {
url = "github:can1357/oh-my-pi";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
# --- BEGIN id sub-flake inputs (synced from pkgs/id/flake.nix) ---
id-nixpkgs.follows = "nixpkgs-master";
id-systems.follows = "systems";
id-rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "id-nixpkgs";
};
id-flake-utils.follows = "flake-utils";
id-import-tree.url = "github:vic/import-tree";
id-flake-parts.follows = "flake-parts";
id-bun2nix = {
url = "github:nix-community/bun2nix";
inputs = {
flake-parts.follows = "id-flake-parts";
import-tree.follows = "id-import-tree";
nixpkgs.follows = "id-nixpkgs";
systems.follows = "id-systems";
};
};
# --- END id sub-flake inputs ---
# nix-colors.url = "github:misterio77/nix-colors"; # bertof/nix-rice # TODO: use this?
# firefox-addons = { # TODO: use this?
# url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons&shallow=1";
# inputs.nixpkgs.follows = "nixpkgs";
# };
# nix-gaming = { # TODO: use this?
# url = "github:fufexan/nix-gaming"; #?shallow=1";
# inputs.nixpkgs.follows = "nixpkgs";
# };
# trustix = { # TODO: use this?
# url = "github:nix-community/trustix"; #?shallow=1";
# inputs.nixpkgs.follows = "nixpkgs";
# };
# nix-inspect = { # TODO: use this?
# url = "github:bluskript/nix-inspect"; #?shallow=1";
# inputs.nixpkgs.follows = "nixpkgs";
# };
# nixos-wsl = { # TODO: use this?
# url = "github:nix-community/NixOS-WSL"; #?shallow=1";
# inputs.nixpkgs.follows = "nixpkgs";
# };
};
nixConfig = {
experimental-features = [
"auto-allocate-uids"
"ca-derivations"
"cgroups"
"dynamic-derivations"
"fetch-closure"
"fetch-tree"
"flakes"
"git-hashing"
# "local-overlay-store" # look into this
# "mounted-ssh-store" # look into this
"nix-command"
# "no-url-literals" # <- removed no-url-literals for flakehub testing
"parse-toml-timestamps"
"pipe-operators"
"read-only-local-store"
"recursive-nix"
"verified-fetches"
];
trusted-users = [ "root" ];
# trusted-users = [ "user" ];
use-xdg-base-directories = true;
builders-use-substitutes = true;
substituters = [
# TODO: priority order
"https://cache.nixos.org"
"https://yazi.cachix.org"
# "https://binary.cachix.org"
# "https://nix-community.cachix.org"
# "https://nix-gaming.cachix.org"
# "https://cache.m7.rs"
# "https://nrdxp.cachix.org"
# "https://numtide.cachix.org"
# "https://colmena.cachix.org"
# "https://sylvorg.cachix.org"
];
trusted-substituters = [
"https://cache.nixos.org"
"https://yazi.cachix.org"
# "https://binary.cachix.org"
# "https://nix-community.cachix.org"
# "https://nix-gaming.cachix.org"
# "https://cache.m7.rs"
# "https://nrdxp.cachix.org"
# "https://numtide.cachix.org"
# "https://colmena.cachix.org"
# "https://sylvorg.cachix.org"
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"yazi.cachix.org-1:Dcdz63NZKfvUCbDGngQDAZq6kOroIrFoyO064uvLh8k="
# "binary.cachix.org-1:66/C28mr67KdifepXFqZc+iSQcLENlwPqoRQNnc3M4I="
# "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
# "nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
# "cache.m7.rs:kszZ/NSwE/TjhOcPPQ16IuUiuRSisdiIwhKZCxguaWg="
# "nrdxp.cachix.org-1:Fc5PSqY2Jm1TrWfm88l6cvGWwz3s93c6IOifQWnhNW4="
# "numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE="
# "colmena.cachix.org-1:7BzpDnjjH8ki2CT3f6GdOk7QAzPOl+1t3LvTLXqYcSg="
# "sylvorg.cachix.org-1:xd1jb7cDkzX+D+Wqt6TemzkJH9u9esXEFu1yaR9p8H8="
];
extra-substituters = [ ];
extra-trusted-substituters = [ ];
extra-trusted-public-keys = [ ];
http-connections = 100; # 128 default:25
max-substitution-jobs = 64; # 128 default:16
# Store:querySubstitutablePaths Store::queryMissing binary-caches-parallel-connections fileTransferSettings.httpConnections
keep-outputs = true; # Nice for developers
keep-derivations = true; # Idem
accept-flake-config = true;
# allow-dirty = false;
# builders-use-substitutes = true;
fallback = true;
log-lines = 128;
# pure-eval = true;
# run-diff-hook = true;
# secret-key-files
show-trace = true;
# tarball-ttl = 0;
tarball-ttl = 259200; # 3600 * 72;
# trace-function-calls = true;
trace-verbose = true;
# use-xdg-base-directories = true;
allow-dirty = true;
/*
buildMachines = [ ];
distributedBuilds = true;
# optional, useful when the builder has a faster internet connection than yours
extraOptions = ''
builders-use-substitutes = true
'';
*/
# extraOptions = ''
# flake-registry = ""
# '';
# Disabled: /nix is ext4 without `large_dir`, so /nix/store/.links has hit the
# 2-level htree limit (~8.7M entries, 829MB) and link() returns ENOSPC despite
# ~2TB free. Dedup isn't worth it at 38% disk usage. Run `nix store optimise`
# manually if space ever gets tight.
auto-optimise-store = false;
#pure-eval = true;
pure-eval = false; # sometimes home-manager needs to change manifest.nix ? idk i just code here
restrict-eval = false; # could i even make a conclusive list of domains to allow access to?
use-registries = true; # clan and others rely on flake registry
use-cgroups = true;
};
description = "developing.today NixOS configuration";
}
#TODO:
# make optional https://git.clan.lol/clan/clan-core/src/branch/main/flake.nix#L115
# make private/local https://git.clan.lol/clan/clan-core/src/branch/main/flake.nix#L53