<aterius>
Ah wait, it seems to have to do with the server side
<abathur>
I assume "non-nixos system" is a non-nixOS linux; can you try connecting from that system to your macOS? or connecting from the macOS to itself?
<aterius>
It seems to be fine now, for some reason non-nixos linux using mosh installed via nix causes the error
<aterius>
Yeah it reproduces with nix-env or home-manager on server side, sorry for false alarm
<aterius>
mosh-server also needs to be wrapped with LOCALE_ARCHIVE, setting it in .profile or .zshenv doesn't seem to work
<antifuchs>
aterius: when you do that, mind adding the PATH entry to the client wrapper as suggested in the issue linked above? That would fix two bugs in one go
<aterius>
yeah I can
<aterius>
I'm also debating in a separate PR bumping mosh to git head...
<aterius>
because they haven't cut a release in a long time but added true color support
<antifuchs>
amazing! <3
<aterius>
I'm actually a bit confused by what the solution is to your issue
<aterius>
You want to hard-code the path passed to the mosh binary?
LnL has quit [Quit: exit 1]
LnL has joined #nix-darwin
philr_ has joined #nix-darwin
philr has quit [Ping timeout: 240 seconds]
<antifuchs>
Either that, or set the $PATH to contain the closure’s bin for?
<antifuchs>
ooh, even better - the .mosh-wrapped program takes a `--mosh-client` argument, where you could pass the store derivation's path in from the wrapper program
<antifuchs>
better yet, I have a patch that does what the ssh_path.patch does, just for mosh-client
<Mic92>
LnL-: Does -static on macOS cause binaries to be built without dynamic-linker?
<Mic92>
I am currently working on stdenv fixes.
<clever>
Mic92: does darwin even allow static binaries at all?
<Mic92>
clever: I don't know
<clever>
i thought it was blocked by the kernel
<aterius>
I don't think I'm going to make this PR since it turns out the problem can be solved by `adding export LOCALE_ARCHIVE=/usr/lib/locale/locale-archive` to profile/zshenv
<aterius>
I'm just going to add a note on the wiki
__monty__ has joined #nix-darwin
supersandro2000 has quit [Quit: Ping timeout (120 seconds)]
supersandro2000 has joined #nix-darwin
clever has quit [Ping timeout: 256 seconds]
iH8c0ff33 has quit [Ping timeout: 260 seconds]
iH8c0ff33 has joined #nix-darwin
<stephank>
Hmm, launchd doesn't have something like EnvironmentFile, apparently. Is there a good way to add some secret env vars to nix-daemon?
iH8c0ff33 has quit [Ping timeout: 240 seconds]
iH8c0ff33 has joined #nix-darwin
iH8c0ff33 has quit [Ping timeout: 260 seconds]
iH8c0ff33 has joined #nix-darwin
iH8c0ff33 has quit [Ping timeout: 256 seconds]
iH8c0ff33 has joined #nix-darwin
<antifuchs>
stephank: I believe you can make a launchd unit that sets environment variables globally on login, but if you want it restricted to a single process you may have to make a wrapper script and override the daemon executable
iH8c0ff33 has quit [Ping timeout: 240 seconds]
iH8c0ff33 has joined #nix-darwin
philr has quit [Ping timeout: 260 seconds]
<LnL->
Mic92: yeah no static linking, (at least for libc, etc.) static linking that with syscall wrappers broke the entire go world back when they did that