nixos/kernel: replace boot.isContainer with boot.kernel.enable
This commit is contained in:
committed by
Sandro Jäckel
parent
8191089900
commit
182575a60d
@@ -20,6 +20,9 @@ in
|
||||
###### interface
|
||||
|
||||
options = {
|
||||
boot.kernel.enable = mkEnableOption (lib.mdDoc "the Linux kernel. This is useful for systemd-like containers which do not require a kernel.") // {
|
||||
default = true;
|
||||
};
|
||||
|
||||
boot.kernel.features = mkOption {
|
||||
default = {};
|
||||
@@ -258,7 +261,7 @@ in
|
||||
];
|
||||
})
|
||||
|
||||
(mkIf (!config.boot.isContainer) {
|
||||
(mkIf config.boot.kernel.enable {
|
||||
system.build = { inherit kernel; };
|
||||
|
||||
system.modulesTree = [ kernel ] ++ config.boot.extraModulePackages;
|
||||
|
||||
Reference in New Issue
Block a user