hostconfig/gandalf: Hibernate after one hour

This commit is contained in:
Quentin Boyer 2024-07-24 21:50:56 +02:00
parent a2a6c49c5c
commit 70c8b17cc4

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelParams = [ "amd_pstate=active" ];
@ -6,6 +7,10 @@
boot.resumeDevice = "/dev/disk/by-uuid/6993932f-5b29-4207-915a-2f185ec9f485";
systemd.sleep.extraConfig = ''
HibernateDelaySec=1h
'';
powerManagement = {
enable = true;
powertop.enable = true;