This repository has been archived by the owner on Aug 5, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
flake.nix
274 lines (237 loc) · 7.67 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
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
{
# https://github.com/NotAShelf/nyx
description = "My vastly overengineered monorepo for everything NixOS";
outputs = inputs:
inputs.flake-parts.lib.mkFlake {inherit inputs;} {
# Systems for which attributes of perSystem will be built. As
# a rule of thumb, only systems provided by available hosts
# should go in this list. More systems will increase evaluation
# duration.
systems = import inputs.systems;
imports = [
./parts # Parts of the flake that are used to construct the final flake.
./hosts # Entrypoint for host configurations of my systems.
];
};
inputs = {
# global, so they can be `.follow`ed
systems.url = "github:nix-systems/default-linux";
# We build against NixOS unstable, because stable takes way too long to get things into
# more versions with or without pinned branches can be added if deemed necessary
# stable? Never heard of her.
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-small.url = "github:NixOS/nixpkgs/nixos-unstable-small"; # moves faster, has less packages
# Sometimes nixpkgs breaks something I need, pin a working commit when that occurs
# nixpkgs-pinned.url = "github:NixOS/nixpkgs/b610c60e23e0583cdc1997c54badfd32592d3d3e";
# Powered by
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
# Home Manager
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
# Ever wanted nix error messages to be even more cryptic?
# Try flake-utils today! (Devs I beg you please stop)
flake-utils = {
url = "github:numtide/flake-utils";
inputs.systems.follows = "systems";
};
# Repo for hardware-specific NixOS modules
nixos-hardware.url = "github:nixos/nixos-hardware";
# Nix wrapper for building and testing my system
nh = {
url = "github:viperML/nh";
inputs.nixpkgs.follows = "nixpkgs-small";
};
# multi-profile Nix-flake deploy
deploy-rs = {
url = "github:serokell/deploy-rs";
inputs = {
nixpkgs.follows = "nixpkgs-small";
utils.follows = "flake-utils";
flake-compat.follows = "flake-compat";
};
};
# Documentation generation for module options
ndg = {
url = "github:feel-co/ndg";
inputs = {
flake-parts.follows = "flake-parts";
nixpkgs.follows = "nixpkgs-small";
};
};
# A tree-wide formatter
treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs-small";
};
nixfmt = {
url = "github:nixos/nixfmt";
flake = false;
};
# I *dare you* to guess what this does
# come on, try
git-hooks = {
url = "github:cachix/git-hooks.nix";
inputs = {
nixpkgs.follows = "nixpkgs-small";
flake-compat.follows = "flake-compat";
};
};
# Sandbox wrappers for programs
nixpak = {
url = "github:nixpak/nixpak";
inputs = {
nixpkgs.follows = "nixpkgs-small";
flake-parts.follows = "flake-parts";
};
};
# This exists, I guess
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
# Impermanence
# doesn't offer much above properly used symlinks
# but it *is* convenient
impermanence.url = "github:nix-community/impermanence";
# Secure-boot support on nixos
# the interface iss still shaky and I would recommend
# avoiding on production systems for now
lanzaboote = {
url = "github:nix-community/lanzaboote";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-compat.follows = "flake-compat";
};
};
# nix-index database
nix-index-db = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs-small";
};
atticd = {
url = "github:zhaofengli/attic";
inputs.nixpkgs.follows = "nixpkgs-small";
};
# Secrets management
agenix = {
url = "github:ryantm/agenix";
inputs = {
nixpkgs.follows = "nixpkgs-small";
home-manager.follows = "home-manager";
darwin.follows = "";
};
};
# Rust overlay
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs = {
nixpkgs.follows = "nixpkgs-small";
};
};
# Nix Language server
nil = {
url = "github:oxalica/nil";
inputs = {
nixpkgs.follows = "nixpkgs-small";
rust-overlay.follows = "rust-overlay";
};
};
# Nightly builds of Neovim, built from the latest
# revision. Usually breaks most plugins, but worth
# keeping for when it actually works.
neovim-nightly = {
url = "github:nix-community/neovim-nightly-overlay";
inputs = {
nixpkgs.follows = "nixpkgs-small";
flake-parts.follows = "flake-parts";
git-hooks.follows = "git-hooks";
};
};
# Personal collection of packages and modules
# that are too unstable or too personal for nyxexprs.
nyxexprs = {
url = "github:NotAShelf/nyxexprs";
inputs.systems.follows = "systems";
};
# An extensible Neovim configuration wrapper.
nvf = {
url = "github:NotAShelf/nvf";
inputs = {
nixpkgs.follows = "nixpkgs";
nil.follows = "nil";
flake-utils.follows = "flake-utils";
flake-parts.follows = "flake-parts";
};
};
# Use my own wallpapers repository to provide various
# wallpapers as nix packages. This has storage usage
# implications as those wallpapers will be kept in the
# store even though they are not used.
wallpkgs = {
url = "github:NotAShelf/wallpkgs";
inputs.nixpkgs.follows = "nixpkgs-small";
};
# anyrun program launcher
anyrun.url = "github:anyrun-org/anyrun";
anyrun-nixos-options = {
url = "github:n3oney/anyrun-nixos-options";
inputs = {
flake-parts.follows = "flake-parts";
};
};
# Aylur's gtk shell (ags)
ags = {
url = "github:Aylur/ags";
inputs.nixpkgs.follows = "nixpkgs";
};
# Nix flake for easy Spicetify configuration.
# Includes themes, apps and more.
spicetify = {
url = "github:gerg-l/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs-small";
};
# Schizophrenic Firefox configuration
schizofox = {
url = "github:schizofox/schizofox";
inputs = {
nixpkgs.follows = "nixpkgs-small";
flake-parts.follows = "flake-parts";
nixpak.follows = "nixpak";
};
};
# Mailserver on nixos
simple-nixos-mailserver = {
url = "gitlab:simple-nixos-mailserver/nixos-mailserver/master";
inputs.nixpkgs.follows = "nixpkgs-small";
};
# Hyprland & Hyprland Contrib repos
# to be able to use the binary cache, we should avoid
# overriding the nixpkgs input - as the resulting hash would
# mismatch if packages are built against different versions
# of the same depended packages.
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
xdg-portal-hyprland.url = "github:hyprwm/xdg-desktop-portal-hyprland";
hyprpicker.url = "github:hyprwm/hyprpicker";
hyprpaper = {
url = "github:hyprwm/hyprpaper";
inputs = {
hyprlang.follows = "hyprland/hyprlang";
nixpkgs.follows = "hyprland/nixpkgs";
systems.follows = "hyprland/systems";
};
};
hyprland-contrib = {
url = "github:hyprwm/contrib";
inputs.nixpkgs.follows = "hyprland/nixpkgs";
};
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
};
}