makeInitrd
extraUtils
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.