hamishmack has quit [Quit: Textual IRC Client: www.textualapp.com]
abathur has joined #nix-darwin
abathur has quit [Ping timeout: 244 seconds]
hamishmack has joined #nix-darwin
jtojnar has joined #nix-darwin
philr has quit [Quit: WeeChat 2.3]
tboston has joined #nix-darwin
teehemka_ has joined #nix-darwin
teehemka_ is now known as teehemkay[away]
<dhess> LnL: around?
<dhess> Anyone around who has written a nix-darwin service, specifically with launchd.daemons?
<dhess> There appears to be no way to run a command when the service is stopped, looks like a launchd limitation... but maybe there's a clever way to do it
<LnL> kind of, what's up?
<dhess> LnL: hi!
<dhess> see above; any way to run a command when launchd stops a service?
<dhess> this is needed for, e.g., WireGuard, which wants you to run "wg-quick down" to stop the interface.
<LnL> hmm, don't think so
<dhess> yeah that's a major flaw in launchd!
<dhess> LnL: any idea what signal launchd sends to a process that it wants to stop?
<LnL> there might be new/undocumented options, but I copy pasted the entire manpage https://github.com/LnL7/nix-darwin/blob/master/modules/launchd/launchd.nix
<LnL> 15 followed by a 9 if that takes too long
<dhess> According to this page, it's SIGTERM http://www.launchd.info
<dhess> yuck
<LnL> and you can configure that with ExitTimeOut
<dhess> right
<dhess> This means that for WireGuard, I'll need some process just lying around waiting for SIGTERM so that it can run `wg-quick down`
<LnL> yeah I think so
{^_^} has quit [Remote host closed the connection]
gchristensen has quit [Quit: WeeChat 2.0]
{^_^} has joined #nix-darwin
gchristensen has joined #nix-darwin
teehemkay[away] is now known as teehemka_
philr has joined #nix-darwin
teehemka_ is now known as teehemkay[away]
<clever> dyld: Library not loaded: /usr/lib/system/libcache.dylib
<clever> remote builds on my mac slave are broken
<clever> what should i check? update darwin?
<LnL> one of the nixpkgs <-> macos incompatibilities we had at some point I think
<LnL> might happen with a pinned nixpkgs or older releases that are not maintained anymore
<clever> LnL: i was building nixpkgs master on an old mac slave