<gchristensen>
I wonder if anyone knows of prior art for a timer which wakes a system up from sleep, does a thing, and then puts the system back to sleep only if it did actually wake the system? timers have WakeSystem, which explicitly does not put the system back to sleep
<andi->
I've been thinking about that stuff for years but never investigated. Would be neat to do that
<andi->
Whats you application?
<gchristensen>
if my laptop is asleep and it is plugged in to power, I'd like it to wake up once an hour to start a backup
<gchristensen>
(or maybe just once in a given sleep cycle -- but that seems trickier to explain and once an hour is trivial enough to express as a timer)
<gchristensen>
I'd also find it interesting to schedule more things like that, on the same condition: if it is plugged in and asleep, see if there is a channel update and do a `nixos-rebuild build` and then prompt me when I open my laptop to switch
infinisil has quit [*.net *.split]
lukegb has quit [*.net *.split]
makefu has quit [*.net *.split]
lukegb has joined #nixos-systemd
infinisil has joined #nixos-systemd
makefu has joined #nixos-systemd
mdlayher has quit [Ping timeout: 246 seconds]
mdlayher has joined #nixos-systemd
{^_^} has quit [Remote host closed the connection]