Use suspend-then-hibernate by default, except for inspiron

This commit is contained in:
SebastianStork 2024-12-14 12:32:06 +01:00
parent 5e5631f00a
commit c2da5a924d
2 changed files with 8 additions and 1 deletions

View file

@ -12,7 +12,7 @@
home.packages = [
wrappers.hyprlock
pkgs.brightnessctl
(pkgs.writeScriptBin "lock-suspend" "loginctl lock-session && sleep 0.5 && systemctl suspend")
(pkgs.writeScriptBin "lock-suspend" "loginctl lock-session && sleep 0.5 && systemctl suspend-then-hibernate")
];
services.hypridle = {

View file

@ -1,3 +1,4 @@
{ pkgs, lib, ... }:
{
imports = [ ../home.nix ];
@ -8,4 +9,10 @@
"eDP-1,1920x1080@60,0x0,1"
",preferred,auto,1,mirror,eDP-1"
];
home.packages = [
(lib.hiPrio (
pkgs.writeScriptBin "lock-suspend" "loginctl lock-session && sleep 0.5 && systemctl suspend"
))
];
}