deadnix is a package to find unused nix code, we can add it to enforce that we don't leave let bindings/inputs/etc. around when they are not needed
.tangled/workflows/deadnix.yml
.tangled/workflows/deadnix.yml
This file has not been changed.
+122
-6
packetmix/nilla.nix
+122
-6
packetmix/nilla.nix
···
6
pins = import ./npins;
7
8
nilla = import pins.nilla;
9
-
10
-
settings = {
11
-
nixpkgs.configuration.allowUnfree = true;
12
-
"nixos-24.11" = settings.nixpkgs;
13
-
nixos-unstable = settings.nixpkgs;
14
-
};
15
in
16
nilla.create (
17
{ config, lib }:
···
135
config.inputs.nilla-nixos.result.packages.nilla-nixos.result.${system}
136
config.inputs.nixos-unstable.result.${system}.quickshell
137
config.inputs.nixpkgs.result.${system}.deadnix
138
config.packages.nilla-fmt.result.${system}
139
config.packages.treefmt.result.${system}
140
(config.inputs.npins.result { inherit pkgs system; })
···
6
pins = import ./npins;
7
8
nilla = import pins.nilla;
9
in
10
nilla.create (
11
{ config, lib }:
···
129
config.inputs.nilla-nixos.result.packages.nilla-nixos.result.${system}
130
config.inputs.nixos-unstable.result.${system}.quickshell
131
config.inputs.nixpkgs.result.${system}.deadnix
132
+
config.packages.nilla-fmt.result.${system}
133
+
config.packages.treefmt.result.${system}
134
+
(config.inputs.npins.result { inherit pkgs system; })
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
+
config.inputs.nilla-home.result.packages.nilla-home.result.${system}
252
+
config.inputs.nilla-nixos.result.packages.nilla-nixos.result.${system}
253
+
config.inputs.nixos-unstable.result.${system}.quickshell
254
config.packages.nilla-fmt.result.${system}
255
config.packages.treefmt.result.${system}
256
(config.inputs.npins.result { inherit pkgs system; })
+1
-1
packetmix/ci.nix
+1
-1
packetmix/ci.nix
+1
-1
packetmix/homes/catppuccin/catppuccin.nix
+1
-1
packetmix/homes/catppuccin/catppuccin.nix
-1
packetmix/homes/coded/catppuccin.nix
-1
packetmix/homes/coded/catppuccin.nix
-1
packetmix/homes/common/gtk.nix
-1
packetmix/homes/common/gtk.nix
-1
packetmix/homes/common/helix.nix
-1
packetmix/homes/common/helix.nix
-3
packetmix/homes/default.nix
-3
packetmix/homes/default.nix
-2
packetmix/homes/development/helix.nix
-2
packetmix/homes/development/helix.nix
-1
packetmix/homes/development/tmux.nix
-1
packetmix/homes/development/tmux.nix
+4
-1
packetmix/homes/espanso/espanso.nix
+4
-1
packetmix/homes/espanso/espanso.nix
-2
packetmix/homes/maya/niri.nix
-2
packetmix/homes/maya/niri.nix
-3
packetmix/homes/minion/niri.nix
-3
packetmix/homes/minion/niri.nix
-2
packetmix/homes/niri/niri.nix
-2
packetmix/homes/niri/niri.nix
-1
packetmix/modules/nilla-home/home.nix
-1
packetmix/modules/nilla-home/home.nix
-2
packetmix/modules/nilla-home/nixos.nix
-2
packetmix/modules/nilla-home/nixos.nix
···
30
31
config.modules =
32
let
33
-
system = submodule.config.pkgs.system;
34
warn' = builtins.warn or builtins.trace; # builtins.warn doesn't exist on some versions of nix/lix
35
warnIf =
36
condition: message: value:
···
52
{
53
home,
54
homeName,
55
-
username,
56
}@identity:
57
warnIf (home.home-manager != homeManager)
58
"The home \"${homeName}\" isn't using the same home-manager input as the NixOS system \"${name}\". This may work, but is not officially supported by the Nilla Home or Nilla NixOS maintainers. Please fix this before reporting any bugs you may find."
···
30
31
config.modules =
32
let
33
warn' = builtins.warn or builtins.trace; # builtins.warn doesn't exist on some versions of nix/lix
34
warnIf =
35
condition: message: value:
···
51
{
52
home,
53
homeName,
54
}@identity:
55
warnIf (home.home-manager != homeManager)
56
"The home \"${homeName}\" isn't using the same home-manager input as the NixOS system \"${name}\". This may work, but is not officially supported by the Nilla Home or Nilla NixOS maintainers. Please fix this before reporting any bugs you may find."
-2
packetmix/packages/bluesky-pds/default.nix
-2
packetmix/packages/bluesky-pds/default.nix
+4
-1
packetmix/systems/common/fonts.nix
+4
-1
packetmix/systems/common/fonts.nix
-1
packetmix/systems/common/inputs.nix
-1
packetmix/systems/common/inputs.nix
+4
-1
packetmix/systems/default.nix
+4
-1
packetmix/systems/default.nix
-1
packetmix/systems/emden/hardware-configuration.nix
-1
packetmix/systems/emden/hardware-configuration.nix
-1
packetmix/systems/emden/steam.nix
-1
packetmix/systems/emden/steam.nix
+1
-1
packetmix/systems/espanso/nixpkgs-328890--espanso-capdacoverride.nix
+1
-1
packetmix/systems/espanso/nixpkgs-328890--espanso-capdacoverride.nix
-1
packetmix/systems/gaming/steam.nix
-1
packetmix/systems/gaming/steam.nix
-1
packetmix/systems/marbled/hardware-configuration.nix
-1
packetmix/systems/marbled/hardware-configuration.nix
-1
packetmix/systems/niri/niri.nix
-1
packetmix/systems/niri/niri.nix
-1
packetmix/systems/personal/configuration.nix
-1
packetmix/systems/personal/configuration.nix
-1
packetmix/systems/redhead/hardware-configuration.nix
-1
packetmix/systems/redhead/hardware-configuration.nix
-4
packetmix/systems/redhead/remoteBuilds.nix
-4
packetmix/systems/redhead/remoteBuilds.nix
+1
-2
packetmix/systems/teal/pds.nix
+1
-2
packetmix/systems/teal/pds.nix
-1
packetmix/systems/teal/stalwart.nix
-1
packetmix/systems/teal/stalwart.nix
History
5 rounds
0 comments
a.starrysky.fyi
submitted
#4
expand 0 comments
pull request successfully merged
a.starrysky.fyi
submitted
#3
expand 0 comments
a.starrysky.fyi
submitted
#2
expand 0 comments
a.starrysky.fyi
submitted
#1
1 commit
expand
collapse
ci(treewide): add deadnix
deadnix is a package to find unused nix code, we can add it to enforce
that we don't leave let bindings/inputs/etc. around when they are not
needed
expand 0 comments
a.starrysky.fyi
submitted
#0
1 commit
expand
collapse
ci: add deadnix
deadnix is a package to find unused nix code, we can add it to enforce
that we don't leave let bindings/inputs/etc. around when they are not
needed