Add additional Kernel params
This commit is contained in:
parent
1ec22067ff
commit
2e90a3b7a1
3 changed files with 19 additions and 1 deletions
|
|
@ -105,6 +105,8 @@ Here is a minimal required configuration.nix (the TODOs mention a required chang
|
||||||
# hyprland.monitor = [
|
# hyprland.monitor = [
|
||||||
# # default
|
# # default
|
||||||
# "${config.conf.defaultMonitor},${config.conf.defaultMonitorMode},0x0,${config.conf.defaultMonitorScale}"
|
# "${config.conf.defaultMonitor},${config.conf.defaultMonitorMode},0x0,${config.conf.defaultMonitorScale}"
|
||||||
|
# # second example monitor
|
||||||
|
# "DP-2,3440x1440@180,auto,1"
|
||||||
# # all others
|
# # all others
|
||||||
# ",highrr,auto,1"
|
# ",highrr,auto,1"
|
||||||
# ];
|
# ];
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,8 @@
|
||||||
# hyprland.monitor = [
|
# hyprland.monitor = [
|
||||||
# # default
|
# # default
|
||||||
# "${config.conf.defaultMonitor},${config.conf.defaultMonitorMode},0x0,${config.conf.defaultMonitorScale}"
|
# "${config.conf.defaultMonitor},${config.conf.defaultMonitorMode},0x0,${config.conf.defaultMonitorScale}"
|
||||||
|
# # second example monitor
|
||||||
|
# "DP-2,3440x1440@180,auto,1"
|
||||||
# # all others
|
# # all others
|
||||||
# ",highrr,auto,1"
|
# ",highrr,auto,1"
|
||||||
# ];
|
# ];
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
defaultMonitor = lib.mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
example = "eDP-1";
|
example = "eDP-1";
|
||||||
|
|
@ -204,7 +215,10 @@
|
||||||
|
|
||||||
config =
|
config =
|
||||||
(lib.optionalAttrs (options ? system.stateVersion) {
|
(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;
|
system.stateVersion = config.conf.systemStateVersion;
|
||||||
})
|
})
|
||||||
// (lib.optionalAttrs (options ? home.stateVersion) {
|
// (lib.optionalAttrs (options ? home.stateVersion) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue