From 61530cc51318713f3da8cb6bffac150b2c8eb4b3 Mon Sep 17 00:00:00 2001 From: Tim Schubert Date: Wed, 30 Oct 2024 21:00:27 +0100 Subject: [PATCH] feat: power management settings --- home/dconf.nix | 8 ++++---- nixos/gorgon/configuration.nix | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/home/dconf.nix b/home/dconf.nix index b75fb2d..7fb2800 100644 --- a/home/dconf.nix +++ b/home/dconf.nix @@ -176,11 +176,11 @@ with lib.hm.gvariant; }; "org/gnome/settings-daemon/plugins/power" = { - idle-dim = false; - power-button-action = "hibernate"; + idle-dim = true; + power-button-action = "interactive"; power-saver-profile-on-low-battery = true; - sleep-inactive-ac-type = "nothing"; - sleep-inactive-battery-timeout = 3600; + sleep-inactive-ac-type = "blank"; + sleep-inactive-battery-timeout = 600; sleep-inactive-battery-type = "suspend"; }; diff --git a/nixos/gorgon/configuration.nix b/nixos/gorgon/configuration.nix index b2da49d..fd61298 100644 --- a/nixos/gorgon/configuration.nix +++ b/nixos/gorgon/configuration.nix @@ -143,6 +143,10 @@ in systemd.services.modem-manager.enable = lib.mkForce false; systemd.services."dbus-org.freedesktop.ModemManager1".enable = lib.mkForce false; + systemd.sleep.extraConfig = '' + HibernateDelaySec=1h + ''; + services.udev.packages = [ xilinxJtag saleaeLogic keychron ]; #noMtpUdevRules ]; virtualisation.libvirtd.enable = true;