mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
Use suspend-then-hibernate by default, except for inspiron
This commit is contained in:
parent
5e5631f00a
commit
c2da5a924d
2 changed files with 8 additions and 1 deletions
|
|
@ -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"
|
||||
))
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue