mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-02-18 04:53:03 +01:00
hostconfig/gandalf: Hibernate after one hour
This commit is contained in:
parent
a2a6c49c5c
commit
70c8b17cc4
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue