!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

887 Members
Declaratively manage your switching, routing, wireless, tunneling and more.258 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
29 Jul 2025
@elvishjerricco:matrix.orgElvishJerriccoI mean I can think of how to do it with no new features too17:37:08
@emilazy:matrix.orgemilywould you like it if we just… made the closures of things small enough that we can use it for everything?17:37:15
@emilazy:matrix.orgemilywithout the current hacks17:37:23
@elvishjerricco:matrix.orgElvishJerricco i.e. make a derivation that creates symlinks to everything listed in a ${closureInfo}/store-paths 17:37:38
@elvishjerricco:matrix.orgElvishJerriccothat's really not going to happen17:37:47
@emilazy:matrix.orgemilyI genuinely think it could!17:38:04
@emilazy:matrix.orgemilywhat do you think the blockers would be? (we could discuss in the systemd room)17:38:12
@elvishjerricco:matrix.orgElvishJerriccoeven if we split binaries from everything else in every relevant derivation (which is a lot of derivations), there's still way more binaries than necessary in a lot of those derivations17:38:33
@emilazy:matrix.orgemily it doesn't have to be a monolithic bin, we do split out individual binaries into their own outputs when necessary 17:39:02
@elvishjerricco:matrix.orgElvishJerriccoeven still, I don't like the idea of having to carefully watch over every derivation in the initrd dependency tree to make sure that none of them ever leaks something big in for the rest of time.17:40:03
@emilazy:matrix.orgemilywe can have a CI test that asserts on the initrd size17:40:32
@elvishjerricco:matrix.orgElvishJerriccoand having code all over nixpkgs to fix a lot of derivations just for the sake of initrd seems like a bad smell17:40:36
@emilazy:matrix.orgemilywell, a Hydra one rather17:40:36
@emilazy:matrix.orgemilywhich is good to have in general17:40:41
@emilazy:matrix.orgemily(we have it for the ISO)17:40:43
@emilazy:matrix.orgemilyI don't think so. split outputs and feature flags are there to reduce closure size where it matters. we don't like to do it without strong reason, but packages going into initrd is a strong reason17:41:12
@emilazy:matrix.orgemilyand if we can accomplish it without breaking the normal Nix closure mechanism that's better and means that other usecases can also benefit from the reduced closure17:41:48

Show newer messages


Back to Room ListRoom Version: 6