patrol02 has joined #nix-darwin
<patrol02> Hi!
<patrol02> I have pkgs.zsh and pkgs.oh-my-zsh in my darwin-configuration.nix. But then I get "The option `programs.zsh.ohMyZsh' does not exist.". Does anyone know how to configure oh-my-zsh?
levdub has joined #nix-darwin
<levdub> New to nix-darwin. Every time I run a nix command I get a `Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring` . I'm assuming because I ran some command as sudo/root at some point and this path got added somewhere. Where was it actually added? I'd like to remove it.
<patrol02> I am new to it too, but I saw it just recently. I used to have working `nix`, but when I installed `nix-darwin` it started happening. Somehow I concluded that I had `nix` installed in a single-user mode, and `nix-darwin` probably expected a multi-user one.
<patrol02> So I re-installed `nix` in a multi-user mode and it stopped happening :)
<levdub> can you elaborate a bit on reinstalling nix in multi-user mode?
<levdub> is it enough to remove /nix/ and run ./install-nix --daemon
<patrol02> I uninstalled what I had and installed with `sh <(curl https://nixos.org/nix/install) --daemon`
<levdub> I've never uninstalled nix. The manual says somewhere that remove /nix is enough, but there are other files too. What did you to uninstall?
<patrol02> There are uninstall steps here: https://nixos.org/nix/manual/#sect-multi-user-installation
<patrol02> Which means just deleting a whole bunch of directories and cleaning up bashrc/zshrc
<patrol02> at least this is what I've done :) I have no idea if removing `/nix` is enough, it might be
<levdub> the uninstall steps there are pretty much "remove /nix and a few other files/folders". thanks
<levdub> doing this now
<levdub> I'm assuming you had to reinstall nix-darwin as well, yeah?
<patrol02> yes, I removed `nix-darwin` first, then `nix`, then installed again
<levdub> Alright, so I screwed that up.
<levdub> the official way to uninstall nix-darwin is to nix-build the uninstaller, which I can't do, because my new nix installation is borked.
<levdub> ~ nix-shell -p hello
<levdub> error: unexpected end-of-file
<patrol02> I can't figure out how to change my shell.... I have `environment.loginShell = pkgs.zsh;` and `users.users.<me>.shell = pkgs.zsh;` and I still get bash
domenkozar[m] has quit [Read error: Connection reset by peer]
nbardiuk has quit [Write error: Connection reset by peer]
thefloweringash has quit [Write error: Connection reset by peer]
thefloweringash has joined #nix-darwin
patrol02 has quit [Ping timeout: 260 seconds]
levdub has quit [Remote host closed the connection]
levdub has joined #nix-darwin
<levdub> so my 'unexpected end-of-file' issue looks to be this: https://github.com/NixOS/nix/issues/2523
<{^_^}> nix#2523 (by periklis, 33 weeks ago, open): darwin: nix-daemon crashes due to OBJC_DISABLE_INITIALIZE_FORK_SAFETY
<levdub> however, I tried the workaround script and it doesn't fix it (also tried rebooting)
<levdub> has anyone worked around this some other way?
veske has joined #nix-darwin
levdub has quit [Quit: Textual IRC Client: www.textualapp.com]
levdub has joined #nix-darwin
levdub has quit [Remote host closed the connection]
levdub has joined #nix-darwin
patrol02 has joined #nix-darwin
<levdub> the problem only comes up in multi-user mode. I commented on the github issue: https://github.com/NixOS/nix/issues/2523#issuecomment-506644502
levdub has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
patrol02 has quit [Remote host closed the connection]
veske has quit [Ping timeout: 268 seconds]
marek has joined #nix-darwin
<marek> hey, is anyone able to help with? https://github.com/NixOS/nixpkgs/pull/63099
<{^_^}> #63099 (by edolstra, 2 weeks ago, open): rustc: 1.34.2 -> 1.35.0
<marek> LnL: and any idea why? I'm affraid I don't understand that code block
<LnL> yeah, I should have looked at it sooner
levdub has joined #nix-darwin
levdub has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
levdub has joined #nix-darwin
levdub has quit [Quit: My iMac has gone to sleep. ZZZzzz…]