Add powertop thingy, pstate kernel module
This commit is contained in:
parent
a5c108f3db
commit
66d119a79b
1 changed files with 7 additions and 0 deletions
|
@ -5,6 +5,7 @@ in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
nixos-hardware.nixosModules.common-cpu-amd
|
nixos-hardware.nixosModules.common-cpu-amd
|
||||||
|
nixos-hardware.nixosModules.common-cpu-amd-pstate
|
||||||
nixos-hardware.nixosModules.common-gpu-amd
|
nixos-hardware.nixosModules.common-gpu-amd
|
||||||
nixos-hardware.nixosModules.common-pc-ssd
|
nixos-hardware.nixosModules.common-pc-ssd
|
||||||
|
|
||||||
|
@ -158,6 +159,12 @@ in
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
powerManagement.powerUpCommands = ''
|
||||||
|
${pkgs.powertop}/bin/powertop --auto-tune
|
||||||
|
echo 'on' > /sys/bus/usb/devices/5-4.2/power/control # Logitech G502 HERO SE
|
||||||
|
echo 'on' > /sys/bus/usb/devices/5-4.1/power/control # splitkb Kyria rev1
|
||||||
|
'';
|
||||||
|
|
||||||
services.nfs.server = {
|
services.nfs.server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
exports = ''
|
exports = ''
|
||||||
|
|
Loading…
Reference in a new issue