can haz low battery hibernation

This commit is contained in:
Hunter Haugen 2026-06-15 08:34:07 -07:00
parent e07d1e3187
commit ceb3f3d3f7
Signed by: hunner
GPG key ID: EF99694AA599DDAD
2 changed files with 12 additions and 7 deletions

View file

@ -270,15 +270,19 @@
services.blueman.enable = true; services.blueman.enable = true;
services.logind.settings.Login = { services.logind.settings.Login = {
HandlePowerKey = "suspend"; HandlePowerKey = "suspend-then-hibernate";
HandleLidSwitch = "suspend"; HandleLidSwitch = "suspend-then-hibernate";
};
systemd.sleep.settings.Sleep = {
HibernateDelaySec = "30min";
}; };
services.upower = { services.upower = {
enable = true; enable = true;
percentageLow = 15; percentageLow = 20;
percentageCritical = 5; percentageCritical = 10;
percentageAction = 3; percentageAction = 8;
criticalPowerAction = "Hibernate"; criticalPowerAction = "Hibernate";
}; };
@ -328,6 +332,7 @@
socat socat
#pkgs.beads #pkgs.beads
gh gh
pkgs.unstable.cursor-cli
pkgs.unstable.opencode pkgs.unstable.opencode
pkgs.pi-coding-agent pkgs.pi-coding-agent
pkgs.xai-grok pkgs.xai-grok

View file

@ -7,11 +7,11 @@
stdenvNoCC.mkDerivation rec { stdenvNoCC.mkDerivation rec {
pname = "xai-grok"; pname = "xai-grok";
version = "0.2.38"; version = "0.2.50";
src = fetchurl { src = fetchurl {
url = "https://registry.npmjs.org/@xai-official/grok-linux-x64/-/grok-linux-x64-${version}.tgz"; url = "https://registry.npmjs.org/@xai-official/grok-linux-x64/-/grok-linux-x64-${version}.tgz";
hash = "sha256-E023XTq3PwPH2zBuOh4jFoUh08o6p4IPfX0x7KFUleE="; hash = "sha256-LCw+7p7WA71FxhCPquwp7NHujVvZoMXH60IyrBD8FZs=";
}; };
nativeBuildInputs = [ nodejs ]; nativeBuildInputs = [ nodejs ];