diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2019-12-19 23:01:34 +0100 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2019-12-19 23:01:34 +0100 |
| commit | e91187debe244b1595ac3163af002c00fbe0622b (patch) | |
| tree | 300bb296ccdc3a7fbd1bbaa8d5e9ca0fd5ce17ca | |
| parent | 71568933eb2ff05700dfa444ecbd2b87668ea958 (diff) | |
| download | nixos-e91187debe244b1595ac3163af002c00fbe0622b.tar nixos-e91187debe244b1595ac3163af002c00fbe0622b.tar.gz nixos-e91187debe244b1595ac3163af002c00fbe0622b.tar.bz2 nixos-e91187debe244b1595ac3163af002c00fbe0622b.tar.xz nixos-e91187debe244b1595ac3163af002c00fbe0622b.zip | |
hibernate sif on lid close
| -rw-r--r-- | sif.nix | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -66,7 +66,7 @@ | |||
| 66 | vnstat.enable = true; | 66 | vnstat.enable = true; |
| 67 | 67 | ||
| 68 | logind.extraConfig = '' | 68 | logind.extraConfig = '' |
| 69 | HandleLidSwitch=hybrid-sleep | 69 | HandleLidSwitch=hibernate |
| 70 | LidSwitchIgnoreInhibited=no | 70 | LidSwitchIgnoreInhibited=no |
| 71 | ''; | 71 | ''; |
| 72 | 72 | ||
| @@ -362,7 +362,7 @@ | |||
| 362 | [ systemd coreutils ]; | 362 | [ systemd coreutils ]; |
| 363 | 363 | ||
| 364 | script = '' | 364 | script = '' |
| 365 | exec systemd-inhibit --what=handle-lid-switch:sleep --why="AC is connected" --mode=block sleep infinity | 365 | exec systemd-inhibit --what=handle-lid-switch --why="AC is connected" --mode=block sleep infinity |
| 366 | ''; | 366 | ''; |
| 367 | 367 | ||
| 368 | serviceConfig = { | 368 | serviceConfig = { |
