!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

907 Members
Declaratively manage your switching, routing, wireless, tunneling and more.271 Servers

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


SenderMessageTime
29 Jul 2025
@emilazy:matrix.orgemilyI think that probably putting a program in a separate output doesn't incur repeated ongoing maintenance costs in most cases17:48:46
@emilazy:matrix.orgemily same way that make-initrd-ng itself doesn't much 17:48:53
@emilazy:matrix.orgemilypeople do closure size minimization work for other reasons, so it's not like it would be burden solely for initrd17:49:18
@elvishjerricco:matrix.orgElvishJerricco Well if you want to give it a try, it shouldn't be too hard to swap makeInitrdNG for makeInitrd and start slashing away 17:50:32
@elvishjerricco:matrix.orgElvishJerricco(oof, a stock systemd initrd is 21M. not great, but acceptable)17:52:20
@emilazy:matrix.orgemilyyeah I might18:04:03
@emilazy:matrix.orgemilyeven just looking at the diff of the closure would probably make it obvious where to start18:04:16
@emilazy:matrix.orgemily (I thought makeInitrd screws up the store paths or something though) 18:05:04
@elvishjerricco:matrix.orgElvishJerricco no, makeInitrd just does plain ole closures 18:05:41
@elvishjerricco:matrix.orgElvishJerricco it's the extraUtils derivation that does the screwing with binaries so the closure is small 18:05:58
@emilazy:matrix.orgemilyah18:07:49
@marcel:envs.net@marcel:envs.net

Is this a crime?

storePaths =
            let
              closure = pkgs.closureInfo { rootPaths = [ initrdCfg.package ]; };
              closurePaths = lib.filter (path: path != "") (lib.splitString "\n" (builtins.readFile "${closure}/store-paths")) ;
            in
            closurePaths ++
            [
              config.environment.etc."ifstate/config.initrd.yml".source
            ];

now i only have to work on reducing the closure size.

19:57:37
@marcel:envs.net@marcel:envs.net *

Is this a crime?

storePaths =
  let
    closure = pkgs.closureInfo { rootPaths = [ initrdCfg.package ]; };
    closurePaths = lib.filter (path: path != "") (lib.splitString "\n" (builtins.readFile "${closure}/store-paths")) ;
  in
  closurePaths ++
  [
    config.environment.etc."ifstate/config.initrd.yml".source
  ];

now i only have to work on reducing the closure size.

19:58:08
@emilazy:matrix.orgemilyIFD19:58:51
@emilazy:matrix.orgemilyso criminal we have a name and a flag for the specific type of crime :)19:59:17
@emilazy:matrix.orgemilyit would break on Hydra19:59:19

Show newer messages


Back to Room ListRoom Version: 6