forked from mirrors/nixpkgs
Fix suspend in systemd
Systemd 203 expects the file /etc/systemd/sleep.conf to exist, otherwise suspend doesn't work.
This commit is contained in:
parent
ebac0220d1
commit
ffb581c739
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue