nixos/upower: drop resumeCommands hack

Introduced 7 years ago, it's likely the issue has
been fixed. Even possible this could cause issues
with recent upower.
This commit is contained in:
worldofpeace 2019-09-08 05:07:03 -04:00
parent 92740dd4a8
commit 16083defb5

View file

@ -54,15 +54,6 @@ in
systemd.packages = [ cfg.package ];
# The upower daemon seems to get stuck after doing a suspend
# (i.e. subsequent suspend requests will say "Sleep has already
# been requested and is pending"). So as a workaround, restart
# the daemon.
powerManagement.resumeCommands =
''
${config.systemd.package}/bin/systemctl try-restart upower
'';
};
}