From ffb581c73944fc5221c29c43ac8ff61010f82e73 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 9 May 2013 16:25:24 +0200 Subject: [PATCH] Fix suspend in systemd Systemd 203 expects the file /etc/systemd/sleep.conf to exist, otherwise suspend doesn't work. --- modules/system/boot/systemd.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/system/boot/systemd.nix b/modules/system/boot/systemd.nix index c44232d7c28e..4957bfeed34b 100644 --- a/modules/system/boot/systemd.nix +++ b/modules/system/boot/systemd.nix @@ -554,6 +554,11 @@ in ${config.services.logind.extraConfig} ''; + environment.etc."systemd/sleep.conf".text = + '' + [Sleep] + ''; + system.activationScripts.systemd = '' mkdir -p /var/lib/udev -m 0755