mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 06:52:13 +05:30
Testing some kernel and systemd config changes
This commit is contained in:
parent
c82069045e
commit
0b2241d439
6 changed files with 25 additions and 13 deletions
|
@ -1,5 +1,9 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
boot.kernelPackages = pkgs.linuxPackages_zen;
|
||||
boot.extraModulePackages = with config.boot.kernelPackages; [
|
||||
zenpower
|
||||
amdgpu-pro
|
||||
];
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
enable = true;
|
||||
settings = {
|
||||
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||
CPU_SCALING_GOVERNOR_ON_BAT = "schedutil";
|
||||
|
||||
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
||||
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
||||
|
@ -25,7 +25,7 @@
|
|||
CPU_MIN_PERF_ON_AC = 0;
|
||||
CPU_MAX_PERF_ON_AC = 100;
|
||||
CPU_MIN_PERF_ON_BAT = 0;
|
||||
CPU_MAX_PERF_ON_BAT = 90;
|
||||
CPU_MAX_PERF_ON_BAT = 80;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
7
system/hardware/systemd.nix
Normal file
7
system/hardware/systemd.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.journald.extraConfig = "SystemMaxUse=250M\nSystemMaxFiles=10";
|
||||
services.journald.rateLimitBurst = 800;
|
||||
services.journald.rateLimitInterval = "5s";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue