Testing some kernel and systemd config changes

This commit is contained in:
Emmet 2023-11-12 10:10:37 -06:00
parent c82069045e
commit 0b2241d439
6 changed files with 25 additions and 13 deletions

View file

@ -6,6 +6,7 @@
{
imports =
[ ../../system/hardware-configuration.nix
../../system/hardware/systemd.nix # systemd config
../../system/hardware/kernel.nix # Kernel config
../../system/hardware/power.nix # Power management
../../system/hardware/opengl.nix

View file

@ -10,10 +10,9 @@ let
in
{
imports =
[ #"${modulesPath}/profiles/minimal.nix"
nixos-wsl.nixosModules.wsl
#../../system/hardware-configuration.nix
[ nixos-wsl.nixosModules.wsl
../../system/hardware/kernel.nix # Kernel config
../../system/hardware/systemd.nix # systemd config
../../system/hardware/opengl.nix
../../system/hardware/printing.nix
../../system/hardware/bluetooth.nix

View file

@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = [ pkgs.virt-manager ];
environment.systemPackages = with pkgs; [ virt-manager virtualbox ];
virtualisation.libvirtd = {
allowedBridges = [
"nm-bridge"
@ -10,4 +10,5 @@
enable = true;
qemuRunAsRoot = false;
};
boot.extraModulePackages = with config.boot.kernelPackages; [ virtualbox ];
}

View file

@ -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
];
}

View file

@ -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;
};
};

View file

@ -0,0 +1,7 @@
{ config, pkgs, ... }:
{
services.journald.extraConfig = "SystemMaxUse=250M\nSystemMaxFiles=10";
services.journald.rateLimitBurst = 800;
services.journald.rateLimitInterval = "5s";
}