nix: 300mhz kernel
Anirudh Oppiliappan x@icyphox.sh
Mon, 02 May 2022 10:02:55 +0530
1 files changed,
15 insertions(+),
4 deletions(-)
M
nix/hosts/wyndle/configuration.nix
→
nix/hosts/wyndle/configuration.nix
@@ -11,9 +11,20 @@ "${asusctl-tar}/nixos/modules/services/misc/asusctl.nix"
"${asusctl-tar}/nixos/modules/services/misc/supergfxctl.nix" ]; - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; - boot.kernel.sysctl."net.ipv4.ip_forward" = 1; + boot = { + loader.systemd-boot.enable = true; + loader.efi.canTouchEfiVariables = true; + kernel.sysctl."net.ipv4.ip_forward" = 1; + kernelParams = [ "mem_sleep_default=deep" ]; + kernelPatches = [{ + name = "three-hundred-hertz"; + patch = null; + extraConfig = '' + HZ_300 y + HZ 300 + ''; + }]; + }; networking = { nameservers = [ "1.1.1.1" "1.0.0.1" ];@@ -150,7 +161,7 @@ Option "TripleBuffer" "on"
''; }; tailscale.enable = true; - power-profiles-daemon.enable = true; + tlp.enable = true; # 1. chmod for rootless backligh1t # 2. lotus58 bootloader mode for rootless qmk flashing udev = {