Add additional Kernel params
This commit is contained in:
parent
1ec22067ff
commit
2e90a3b7a1
3 changed files with 19 additions and 1 deletions
|
|
@ -39,6 +39,17 @@
|
|||
'';
|
||||
};
|
||||
|
||||
additionalBootKernalParams = lib.mkOption {
|
||||
default = [
|
||||
"video=${config.conf.defaultMonitor}:${config.conf.defaultMonitorMode}"
|
||||
];
|
||||
example = [ ];
|
||||
type = with lib.types; listOf str;
|
||||
description = ''
|
||||
additional kernelParams passed to bootloader
|
||||
'';
|
||||
};
|
||||
|
||||
defaultMonitor = lib.mkOption {
|
||||
default = "";
|
||||
example = "eDP-1";
|
||||
|
|
@ -204,7 +215,10 @@
|
|||
|
||||
config =
|
||||
(lib.optionalAttrs (options ? system.stateVersion) {
|
||||
boot.kernelPackages = lib.mkIf (config.conf.kernelOverride != null) config.conf.kernel;
|
||||
boot = {
|
||||
kernelPackages = lib.mkIf (config.conf.kernelOverride != null) config.conf.kernel;
|
||||
kernelParams = config.conf.additionalBootKernalParams;
|
||||
};
|
||||
system.stateVersion = config.conf.systemStateVersion;
|
||||
})
|
||||
// (lib.optionalAttrs (options ? home.stateVersion) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue