bare-metal: automatically suspend when idle
Alan Pearce alan@alanpearce.eu
Thu, 16 Jun 2022 16:38:29 +0200
1 files changed, 6 insertions(+), 0 deletions(-)
M system/settings/hardware/bare-metal.nix → system/settings/hardware/bare-metal.nix
@@ -10,6 +10,12 @@ pciutils usbutils ]; + services.logind = { + extraConfig = '' + IdleAction=suspend + IdleActionSec=1800 + ''; + }; services.udev.extraRules = '' # set scheduler for NVMe ACTION=="add|change", KERNEL=="nvme[0-9]n[0-9]", ATTR{queue/scheduler}="none"