From 876909959c2855f8397412aca994e8579f6aa658 Mon Sep 17 00:00:00 2001 From: soyouzpanda Date: Wed, 18 Sep 2024 13:13:52 +0200 Subject: [PATCH] fix: added toplevel configuration --- modules/outputs/initramfs.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) 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