can haz low battery hibernation
This commit is contained in:
parent
e07d1e3187
commit
ceb3f3d3f7
2 changed files with 12 additions and 7 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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 ];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue