diff --git a/modules/outputs/initramfs.nix b/modules/outputs/initramfs.nix index b1e0ea8..0b1b12a 100644 --- a/modules/outputs/initramfs.nix +++ b/modules/outputs/initramfs.nix @@ -13,6 +13,14 @@ in boot.initramfs = { enable = mkEnableOption "initramfs"; }; + system.build.toplevel = mkOption { + type = types.package; + description = '' + pkgs.systemconfig for the configured filesystem, + contains 'activate' and 'init' commands + ''; + internal = true; + }; system.outputs = { initramfs = mkOption { type = types.package; @@ -39,6 +47,8 @@ in INITRAMFS_COMPRESSION_ZSTD = "y"; }; + system.build.toplevel = config.system.outputs.systemConfiguration; + system.outputs = { initramfs = let