nixos/top-level: fix cutoffPackages without initialRamdisk (#444133)
This commit is contained in:
@@ -283,8 +283,8 @@ in
|
||||
};
|
||||
|
||||
cutoffPackages = mkOption {
|
||||
default = [ config.system.build.initialRamdisk ];
|
||||
defaultText = literalExpression "[ config.system.build.initialRamdisk ]";
|
||||
default = lib.optionals config.boot.initrd.enable [ config.system.build.initialRamdisk ];
|
||||
defaultText = literalExpression "lib.optionals config.boot.initrd.enable [ config.system.build.initialRamdisk ]";
|
||||
type = types.listOf types.package;
|
||||
description = ''
|
||||
Packages to which no replacements should be applied.
|
||||
|
||||
Reference in New Issue
Block a user