summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2019-08-28 17:29:17 +0800
committerGitHub <noreply@github.com>2019-08-28 17:29:17 +0800
commit73701a7a052c1e57bb050e705a1f53f04843a4d2 (patch)
tree5ceacb5ffaebf4bec9866c26e2a7c32d9675c713 /nixos/modules
parenta35400ffa22b6496166525040c6131e210cde724 (diff)
parentc8e863e25ecc7e20836f8f9275329d5afd5e4f0e (diff)
downloadnixpkgs-73701a7a052c1e57bb050e705a1f53f04843a4d2.tar
nixpkgs-73701a7a052c1e57bb050e705a1f53f04843a4d2.tar.gz
nixpkgs-73701a7a052c1e57bb050e705a1f53f04843a4d2.tar.bz2
nixpkgs-73701a7a052c1e57bb050e705a1f53f04843a4d2.tar.lz
nixpkgs-73701a7a052c1e57bb050e705a1f53f04843a4d2.tar.xz
nixpkgs-73701a7a052c1e57bb050e705a1f53f04843a4d2.tar.zst
nixpkgs-73701a7a052c1e57bb050e705a1f53f04843a4d2.zip
Merge pull request #67487 from dasJ/suspend-then-hibernate
nixos/systemd: Add suspend-then-hibernate units
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/system/boot/systemd.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix
index 2a0360b12cb..a7951385062 100644
--- a/nixos/modules/system/boot/systemd.nix
+++ b/nixos/modules/system/boot/systemd.nix
@@ -112,11 +112,13 @@ let
       # Hibernate / suspend.
       "hibernate.target"
       "suspend.target"
+      "suspend-then-hibernate.target"
       "sleep.target"
       "hybrid-sleep.target"
       "systemd-hibernate.service"
       "systemd-hybrid-sleep.service"
       "systemd-suspend.service"
+      "systemd-suspend-then-hibernate.service"
 
       # Reboot stuff.
       "reboot.target"