| 30 Mar 2026 |
hexa (signing key rotation when) | nodePackages removal | 12:43:43 |
K900 | Oh my fucking god | 12:44:41 |
hexa (signing key rotation when) | https://github.com/nix-community/nix-index/blob/master/src/listings.rs#L29 | 12:44:45 |
K900 | Yeah figures | 12:45:19 |
K900 | Need to make that shit overridable | 12:45:25 |
vcunat | I assume it doesn't matter that we drop nodePackages from the index on 25.11 as well? | 13:10:04 |
K900 | Probably not | 13:10:17 |
vcunat | Context: https://github.com/nix-community/nix-index/pull/300 and around | 13:10:30 |
hexa (signing key rotation when) | deploying pluto | 13:11:41 |
K900 | I am tempted to actually make that shit overrideable properly | 13:11:48 |
hexa (signing key rotation when) | ok, nix-index on pluto is working again | 13:20:47 |
vcunat |
I am tempted to actually make that shit overrideable properly
If I wanted to properly do this, this list of extra attributes should be somewhere in nixpkgs instead. Though that might be overengineering.
| 13:31:29 |
K900 | recurseIntoAttrs = "maybe" | 13:34:55 |
K900 | /j | 13:34:58 |
K900 | https://github.com/nix-community/nix-index/pull/301 | 14:55:57 |
emily | I think we already have a thing for this | 15:16:32 |
emily | packages-config or something | 15:16:37 |
emily | it's one of those things where we have five slightly different versions of the same thing | 15:16:51 |
emily | https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/packages-config.nix | 15:17:22 |
emily | can it be driven by this? | 15:17:27 |
emily | otherwise it's just inconsistency between various things trying to achieve the same goal | 15:18:58 |
Mindavi | I guess having it as a flag brings it a step closer to script it | 15:25:55 |
emily | it's a bit orthogonal, since packages-config.nix is passed as the Nixpkgs config when instantiating the package set | 18:22:20 |
emily | therefore the functionality could actually be removed from nix-index entirely – it would just be a matter of instantiating Nixpkgs appropriately | 18:22:47 |
emily | https://github.com/nix-community/nix-index/blob/master/src/nixpkgs.rs#L29 | 18:23:36 |
emily | .arg("config")
.arg("{ allowAliases = false; }") // override default nixpkgs config discovery
would be replaced by setting NIXPKGS_CONFIG=$nixpkgs/pkgs/top-level/packages-config.nix (or passing --arg config "import $nixpkgs/pkgs/top-level-packages.config.nix"), and then the scopes stuff can go away.
| 18:24:49 |
emily | (ofc haskellPackages, coqPackages, texlive.pkgs might need handling in packages-config.nix… though I wonder if all of those are actually necessary these days, e.g. haskellPackages is certainly recursed into?) | 18:25:43 |
emily | it doesn't make much sense for the info used by https://github.com/NixOS/nixpkgs/blob/7d983847f0c19127319281055f1e086a04384de5/pkgs/top-level/packages-info.nix and https://github.com/NixOS/nixos-search/blob/7e05acf78305990769523f7670150e9e33f1f8f4/flake-info/src/commands/nixpkgs_info.rs to differ from that used by nix-index | 18:26:49 |
emily | since packages.json from Hydra uses it https://github.com/NixOS/nixpkgs-channels/blob/4762fba469e2baa82f983b262e2c06ac2fdaae67/pkgs/top-level/make-tarball.nix#L106 and nix-index is doing the same essential thing | 18:27:20 |
emily | (er… how did I end up on that old repo) | 18:28:20 |