nD5Xjz has joined #nix-darwin
nD5Xjz has quit [Ping timeout: 268 seconds]
kyren has joined #nix-darwin
<kyren> it seems like nix-shell is resetting my NIX_PATH variable, but this only seems to happen on a machine which I'm configuring with nix-darwin
<kyren> I'm not 100% sure it's related to nix-darwin though
nD5Xjz has joined #nix-darwin
jtojnar has quit [Ping timeout: 272 seconds]
jtojnar has joined #nix-darwin
nD5Xjz has quit [Ping timeout: 250 seconds]
nD5Xjz has joined #nix-darwin
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nix-darwin
nD5Xjz has quit [Ping timeout: 245 seconds]
philr has quit [Ping timeout: 268 seconds]
nD5Xjz has joined #nix-darwin
jtojnar has quit [Quit: jtojnar]
philr has joined #nix-darwin
jtojnar has joined #nix-darwin
teehemka_ has joined #nix-darwin
nD5Xjz has quit [Ping timeout: 272 seconds]
nD5Xjz has joined #nix-darwin
teehemka_ is now known as teehemkay[away]
teehemkay[away] has quit [Quit: ZZZzzz…]
peacememories has joined #nix-darwin
Profpatsch has left #nix-darwin ["WeeChat 0.4.3"]
<thefloweringash> how recent is your nix-darwin? until last October-ish each shell would completely reset its environment
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
teehemka_ has joined #nix-darwin
teehemka_ is now known as teehemkay[away]
teehemkay[away] has quit [Quit: ZZZzzz…]
teehemkay has joined #nix-darwin
<teehemkay> I've got a new laptop and finally decided to make to switch to nix-darwin. I've tried to install Nix in multi-user mode. Even though the install succeeded, I get the following error "error: unexpected end-of-file" when I try to install anything.
<teehemkay> I'm running MacOS Mojave, the latest version
<teehemkay> An Nix is @ version 2.2.1
<teehemkay> I was also wondering if it's not better (required?) to install in single user mode for nix-darwin.
<teehemkay> Any help would be greatly appreciated. I'm still a nix noob.
jonge has joined #nix-darwin
<teehemkay> jonge: Hi
<jonge> hey teehemkay
<jonge> so i grepped through nix's source and have seen that this exact error message comes from an exception that is thrown at 3 different spots.
<jonge> always in the context of unbuffered file reads... but no idea what files are too early EOF for nix.
<jonge> not too helpful an error message. :D
<teehemkay> Yep. I've tried running an install in super-verbose mode but the error is still triggered without any context.
<teehemkay> I'll ping @LnL because I see that https://github.com/NixOS/nix/issues/2244 was maybe related to this issue...
<{^_^}> nix#2244 (by bemeurer, 33 weeks ago, closed): Installing on macOS Mojave fails
<LnL> pong
<teehemkay> Hi Jordan. Thanks for chiming in... Any clue re: the above issue on MacOS Mojave
<jonge> teehemkay: i had that dylib problem which is why i deleted nix completely and wanted to reinstall. but i can't really relate to that thead
<{^_^}> nix#2523 (by periklis, 13 weeks ago, open): darwin: nix-daemon crashes due to OBJC_DISABLE_INITIALIZE_FORK_SAFETY
<jonge> teehemkay: interesting. i simply removed nix again and reinstalled, and now i can still not install software, but "nix-channel --update" works again. something fishy
<teehemkay> jonge: Yep. I also removed nix and re-installed, but I get the same problem
<teehemkay> jonge: Do you have a multi-user install (--daemon)
<jonge> so it's still not solved for me but appears differently now.
<jonge> teehemkay: yes multi user
<LnL> can you paste the output of nix doctor
<jonge> LnL: just "nix doctor" ? it says "store uri: daemon"
<teehemkay> LnL: same here
<LnL> nix-daemon had that problem on >2.1
<jonge> do you know what's causing it?
<teehemkay> Interesting, I've been using multi-user on my two other Macs running High Sierra with Nix 2.2 and it works flawlessly.
<LnL> partially
<teehemkay> LnL: Would you advise, installing Nix in single-user mode considering I want to run nix-darwin?
<LnL> single user or 2.1.3 are the easiest workarounds
<teehemkay> OK, thanks. I'll try single user.
<jonge> yeah singleuser works. thank you!
<thefloweringash> Another workaround also seems to be "enable ipv6", which I find just a bit entertaining
<jonge> ipv6? wtf how does that work together
<thefloweringash> > It looks like some kind of fallback that happens when no ipv6 address can be resolved for the host.
<{^_^}> error: syntax error, unexpected ')', expecting ID or OR_KW or DOLLAR_CURLY or '"', at (string):219:1
<jonge> oh i see. interesting
<teehemkay> I confirm that single-user works, thank you!
<teehemkay> thefloweringash: thanks for the tip!
<thefloweringash> think you mean LnL :-)
philr has quit [Ping timeout: 250 seconds]
<teehemkay> Actually both, you and him 😉
<matthewbauer[m]> Is anyone else having issues after the update to macOS 10.14.3? I keep getting "Unexpected end-of-file" and this message: ```objc[763]: +[__NSPlaceholderArray initialize] may have been in progress in another thread when fork() was called.
<matthewbauer[m]> objc[763]: +[__NSPlaceholderArray initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
<matthewbauer[m]> ```
<matthewbauer[m]> ugh: ```objc[763]: +[__NSPlaceholderArray initialize] may have been in progress in another thread when fork() was called.
<matthewbauer[m]> objc[763]: +[__NSPlaceholderArray initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
<matthewbauer[m]> ```
<matthewbauer[m]> Setting --substituters '' seems to help
<dhess> LnL: is there an easy way to add an argument to the nix-darwin module system? as in { config, pkgs, lib, foo, ... } if I wanted to add an argument "foo"
<{^_^}> nix#2523 (by periklis, 13 weeks ago, open): darwin: nix-daemon crashes due to OBJC_DISABLE_INITIALIZE_FORK_SAFETY
<LnL> you can add module arguments like that
<dhess> LnL: is `packages` an argument passed to each nix-darwin module? I'm not sure how to get hold of `_module` given { config, pkgs, lib, ... }
<LnL> you can't get to _module
<dhess> I would be starting with the top-level darwin-config file, I assume. As far as I know its arguments are { config, pkgs, lib, ... }
<LnL> _module.args.foo = ...; means { config, foo, ... }: ...
<dhess> ok so assume this is my top-level darwin-config file: https://gist.github.com/dhess/c102bb6e521c34c06eaa00ec6d53f717
<dhess> and in modules-list.nix there are a bunch of .nix files that implement a module system and those take { config, pkgs, lib, ... }
<dhess> how do I pass a `foo` to those modules so that they can start with { config, pkgs, lib, foo, ...}
<LnL> yeah you can do that
<dhess> how? :)
<LnL> I just said, exacly like how pkgs is added
<dhess> sorry if I'm dense, but I asked how I could get to _module and I think you said I can't. But pkgs is added by doing _module.args.pkgs
<dhess> oh I can get to _module
<dhess> ok :)
<dhess> I misunderstood and thought you said that I could not
<LnL> you can set it if that's what you meab
<dhess> yeah that's what I meant. I should have been more precise.
<LnL> any module can extend the arguments, just be careful about loops
<dhess> I figured as much, I just couldn't figure out how :)
<dhess> let me try this quickly
<LnL> eg. pkgs can't depend on options that reference other packages
<dhess> sure
<LnL> but if your values are simple you'll probably not run into that
<LnL> pkgs is an annoying case
<dhess> in my case they're just NIX_PATH components
<dhess> that worked perfectly! thanks so much!
<dhess> It'll be nice to know how to do that
<LnL> great, values are generally passed around with config.<option> instead tho but arguments also work
<dhess> yeah normally I would do that, but in this case I'm just trying to manipulate the <darwin-config> NIX_PATH component
<dhess> so it seems like a better idea to use what's already there rather than asking the user to have to specify it in 2 places
<dhess> I may change my mind, just hacking at the moment
trcc has joined #nix-darwin
peacememories has joined #nix-darwin
peacememories has quit [Quit: Textual IRC Client: www.textualapp.com]
peacememories has joined #nix-darwin
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
trcc has quit [Remote host closed the connection]
trcc has joined #nix-darwin
trcc has quit [Ping timeout: 268 seconds]
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nix-darwin