Mike :nixos: on Nostr: Maybe I'm over thinking this. In #NixOS , I want to simply have a job once a day, but ...
Maybe I'm over thinking this.
In #NixOS , I want to simply have a job once a day, but only run when a user (any user) is logged in and at the desktop (since part of this job sends a desktop notification)
I was trying to do this with a systemd timer, but that's proving to be super messy having the service wait until someone is logged in.
Is there a better way?
Published at
2025-04-06 20:39:19 UTCEvent JSON
{
"id": "08e74ba733f8539a3bf6cb4365cae630a32eb2af22e76a8add2481c6d74c1a88",
"pubkey": "4a02b831fb17299b249d512bf46c9c3cbfa4a057c08506dc0c0b1b5f4d598ed2",
"created_at": 1743971959,
"kind": 1,
"tags": [
[
"proxy",
"https://fosstodon.org/@codemonkeymike/114292946342315239",
"web"
],
[
"t",
"nixos"
],
[
"proxy",
"https://fosstodon.org/users/codemonkeymike/statuses/114292946342315239",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fosstodon.org/users/codemonkeymike/statuses/114292946342315239",
"pink.momostr"
],
[
"-"
]
],
"content": "Maybe I'm over thinking this. \n\nIn #NixOS , I want to simply have a job once a day, but only run when a user (any user) is logged in and at the desktop (since part of this job sends a desktop notification)\n\nI was trying to do this with a systemd timer, but that's proving to be super messy having the service wait until someone is logged in. \n\nIs there a better way?",
"sig": "48e9dde2286ce73306e31c4a71d363c6310311fb7d25dc0a96f2de37ad78224088c818f124f3c3a646654cf3d21606ff68236452547f41736e0ccc3e7c5d6c7b"
}