diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-05-09 16:25:24 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-05-09 16:26:13 +0200 |
commit | ffb581c73944fc5221c29c43ac8ff61010f82e73 (patch) | |
tree | d383a15f44c7a7a0b40b854cca88982af24edcaa /modules/system/boot/systemd.nix | |
parent | ebac0220d1b3aebc46f1de50ffe414fa7ba72fb4 (diff) | |
download | nixpkgs-ffb581c73944fc5221c29c43ac8ff61010f82e73.tar nixpkgs-ffb581c73944fc5221c29c43ac8ff61010f82e73.tar.gz nixpkgs-ffb581c73944fc5221c29c43ac8ff61010f82e73.tar.bz2 nixpkgs-ffb581c73944fc5221c29c43ac8ff61010f82e73.tar.lz nixpkgs-ffb581c73944fc5221c29c43ac8ff61010f82e73.tar.xz nixpkgs-ffb581c73944fc5221c29c43ac8ff61010f82e73.tar.zst nixpkgs-ffb581c73944fc5221c29c43ac8ff61010f82e73.zip |
Fix suspend in systemd
Systemd 203 expects the file /etc/systemd/sleep.conf to exist, otherwise suspend doesn't work.
Diffstat (limited to 'modules/system/boot/systemd.nix')
-rw-r--r-- | modules/system/boot/systemd.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/system/boot/systemd.nix b/modules/system/boot/systemd.nix index c44232d7c28..4957bfeed34 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 |