nixos/systemd-initrd: honor the enable option in contents (#411800)

This commit is contained in:
Florian Klink 2025-05-29 18:06:12 +03:00 committed by GitHub
commit 9dd801dea7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -133,7 +133,9 @@ let
name = "initrd-${kernel-name}";
inherit (config.boot.initrd) compressor compressorArgs prepend;
contents = lib.filter ({ source, ... }: !lib.elem source cfg.suppressedStorePaths) cfg.storePaths;
contents = lib.filter (
{ source, enable, ... }: (!lib.elem source cfg.suppressedStorePaths) && enable
) cfg.storePaths;
};
in