mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Boot+Refactoring] Add a cmdline config option for cleaner boot option config
This commit is contained in:
parent
8457628ee6
commit
7e26d25066
6 changed files with 43 additions and 22 deletions
10
general.nix
10
general.nix
|
|
@ -94,10 +94,12 @@ in
|
|||
font = "Lat2-Terminus16";
|
||||
};
|
||||
|
||||
boot.kernelParams = concatLists [
|
||||
(optional cfg.unsafeOptimizations "mitigations=off")
|
||||
(optionals cfg.unsafeOptimizations [ "i915.mitigations=off" "i915.enable_dc=4" "i915.fastboot=1" ] )
|
||||
];
|
||||
aviallon.boot.cmdline = mkIf cfg.unsafeOptimizations {
|
||||
mitigations = "off";
|
||||
"i915.mitigations" = "off";
|
||||
"i915.enable_dc" = 4;
|
||||
"i915.fastboot" = 1;
|
||||
};
|
||||
|
||||
powerManagement.cpuFreqGovernor = mkDefault "schedutil";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue