Add ryzenadj systemd oneshot unit for curve opt & tctl
This commit is contained in:
parent
d3e584a992
commit
98e1894b18
1 changed files with 17 additions and 0 deletions
|
@ -54,6 +54,12 @@
|
|||
};
|
||||
};
|
||||
|
||||
# specialisation.linux-rc.configuration = {
|
||||
# boot.kernelPackages = lib.mkForce pkgs.linuxPackages_cachyos-rc;
|
||||
# environment.etc."specialisation".text = "linux-rc";
|
||||
# system.nixos.tags = [ "linux-rc" ];
|
||||
# };
|
||||
|
||||
boot = {
|
||||
# kernelPackages = pkgs.linuxPackages_cachyos; # bootstrap
|
||||
kernelPackages = pkgs.pkgsAMD64Microarchs.znver4.linuxPackages_cachyos; # TODO see above, include into module
|
||||
|
@ -147,6 +153,17 @@
|
|||
|
||||
systemd = {
|
||||
services = {
|
||||
ryzenadj = {
|
||||
enable = true;
|
||||
description = "RyzenAdj Autoset";
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "root";
|
||||
ExecStart = "${pkgs.ryzenadj}/bin/ryzenadj -f90 --set-coall=-20";
|
||||
};
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
};
|
||||
|
||||
# Do not manage HID devices with powertop to prevent annoying keyboard/mouse sleeps
|
||||
powertop.postStart = ''
|
||||
HIDDEVICES=$(ls /sys/bus/usb/drivers/usbhid | grep -oE '^[0-9]+-[0-9\.]+' | sort -u)
|
||||
|
|
Loading…
Add table
Reference in a new issue