nkpart has quit [Quit: Connection closed for inactivity]
smellyfish has joined #nix-darwin
<smellyfish> hey anyone using nix on Mac OS with fish?
<smellyfish> Also, is this the right place to ask for help, should have probably asked that first :)
<gchristensen> you bet!
<smellyfish> Cool
<smellyfish> there might be some documentation I overlooked
<smellyfish> but basically, nix is working fine in bash
<smellyfish> but when I change my default shell to Fish, I no longer have it on my path in freshly booted shell session
<smellyfish> I read on GitHub / various places about some people boot bash first and then immediately kicking off fish
<smellyfish> but I was wondering if there a more elegant solution then launching to shells
<smellyfish> err two shells
smellyfish has quit [Ping timeout: 260 seconds]
nkpart has joined #nix-darwin
nkpart has quit [Quit: Connection closed for inactivity]
<LnL> some people added fish support to https://github.com/LnL7/nix-darwin
hamishmack has quit [Quit: hamishmack]
hamishmack has joined #nix-darwin
zzamboni has joined #nix-darwin
zzamboni1 has joined #nix-darwin
zzamboni has quit [Remote host closed the connection]
periklis has joined #nix-darwin
zzamboni1 has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
periklis has quit [Ping timeout: 268 seconds]
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
__Sander__ has joined #nix-darwin
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
zzamboni has quit [Ping timeout: 268 seconds]
peacememories has joined #nix-darwin
jrolfs has joined #nix-darwin
szicari has joined #nix-darwin
FRidh has joined #nix-darwin
FRidh has left #nix-darwin ["Konversation terminated!"]
zzamboni has joined #nix-darwin
copumpkin has quit [*.net *.split]
manveru has quit [*.net *.split]
wavewave has quit [*.net *.split]
wavewave has joined #nix-darwin
manveru has joined #nix-darwin
Sonarpulse has joined #nix-darwin
copumpkin has joined #nix-darwin
contrapumpkin has quit [Quit: Textual IRC Client: www.textualapp.com]
contrapumpkin has joined #nix-darwin
szicari has quit [Read error: Connection reset by peer]
szicari has joined #nix-darwin
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
zzamboni has quit [Remote host closed the connection]
zzamboni has joined #nix-darwin
zzamboni has quit [Client Quit]
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
peacememories has joined #nix-darwin
__Sander__ has quit [Quit: Konversation terminated!]
<mitchty> i've slacked off on figuring out the magique to get nix-shell to default to zsh, the less bash I have in my life the better :)
zzamboni has joined #nix-darwin
<LnL> meh, most of the stdenv won't work so you loose a bunch of stuff
zzamboni has quit [Quit: Leaving.]
<LnL> but I’m pretty sure nix run works if your config doesn’t clobber PATH
<mitchty> being a newb to most of the nix internals, how much of a pita would it be to get zsh on-parish to bash? or should I just accept bash into my life as the one true shell savior?
zzamboni has joined #nix-darwin
<LnL> doesn’t really have anything to do with nix itself
<LnL> it’s $stdenv/setup and probably a whole bunch of setup hooks that won’t work
<LnL> you could ask Sonarpulse to rewrite all his work in sh :D
<mitchty> heh, well i'm used to converting /bin/sh shebangs from "isn't bash bourne shell?" to lame old sh compatible shell
zzamboni has quit [Quit: Leaving.]
<LnL> some bash 4 features like array maps or whatever they are called are used quite a bit
<mitchty> sounds like bash4 is finally up to speed with zsh from the early 2000's then >.<
<Sonarpulse> LnL: zsh general is back-comopat
<LnL> well . $stdenv/setup doesn't work
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Sonarpulse> oh
<Sonarpulse> LnL: well zsh after stdenv setup has run
<Sonarpulse> should be alright
<LnL> sure you can source env-vars, but that's only a small part of nix-shell
peacememories has joined #nix-darwin
szicari_ has joined #nix-darwin
szicari has quit [Ping timeout: 240 seconds]
szicari_ is now known as szicari
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
peacememories has joined #nix-darwin
zzamboni has joined #nix-darwin
<johnw> greetings
<Sonarpulse> LnL: err i guess it depends what nix-shell is used for
<LnL> yes, the nix run usecase is fine like I mentioned before
hamishmack has quit [Quit: hamishmack]
<Sonarpulse> LnL: which usecase is this?
<Sonarpulse> LnL: I'd say if its debugging a derivation
<Sonarpulse> then anything but bash is just wrong by virtue of not being the shell that's actualy used
<LnL> everything else like a development environment with a shellHook, etc.
<Sonarpulse> LnL: i thought that would work
<Sonarpulse> but i dunno
<Sonarpulse> hopefully we do use less shell long term
<LnL> don't think so and I very often reuse phases in there for helpers, etc.
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nix-darwin
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
zzamboni has quit [Quit: Leaving.]
jrolfs has quit [Ping timeout: 276 seconds]
zzamboni has joined #nix-darwin
<johnw> LnL: how do I have both bash and zsh enabled in nix-darwin, yet indicate that zsh is the login/primary shell?
<LnL> just enable them both, zsh/fish has higher priority for SHELL etc.
<johnw> how is that configured?
<johnw> say, if I wanted both enabled, but bash preferred?
<LnL> bash uses mkDefault while the others set the value with regular priority
<LnL> currently there's no way to give bash a higher priority unless you set the options yourself
szicari has quit [Quit: szicari]
jrolfs has joined #nix-darwin
<LnL> huh, is my build stuck or does ghc take more then 2h to build?
<johnw> hmm
<johnw> it can
<LnL> patching script interpreter paths
<LnL> please tell me it didn't get stuck there
<LnL> btw did you see my message about my cache setup?
<johnw> no
<LnL> I automated uploading recent stuff
<LnL> it will keep builds for ~5days
<johnw> nice
<LnL> last time my bucket got pretty big quite quickly
<LnL> let me know if you notice it’s being used, this setup should be fine to keep it running
infinisil has joined #nix-darwin
<johnw> LnL: ok, I enabled zsh in both nix-darwin and home-manager
<johnw> logged out, logged back in
<johnw> every terminal I start shows "-bash-3.2$ "
<johnw> if I "exec zsh -l", it looks as it should
<johnw> and SHELL is always set to the right path to zsh
<LnL> oh yes, i don't do a chsh
<johnw> so, in iTerm2 I can just point to zsh
<LnL> yeah chsh or configure your terminal
<johnw> wouldn't I have to chsh with each rebuild?
<johnw> or does it not chase the symlink?
<LnL> you can set it to /run/current-system/sw/bin/zsh
<LnL> but that's not in the default shells and I'm a bit uncomfortable with changing that
<johnw> wow, zsh is slower to startup
<johnw> by orders of magnitude
<johnw> prettier, though
<LnL> it caches a bunch of stuff, should be way faster the second time
<johnw> nope
<LnL> hmm, maybe compinit is getting called twice because of nix-darwin + home-manager
<johnw> maybe so
<johnw> I think I won't enable zsh at the nix-darwin level at all
<LnL> you can disable the completion options
<LnL> but yes, just enabling it in one is probably best
<johnw> nah, bash sys level, zsh user level, is a more logical divide anyway
<LnL> urgh, I've been pretty bad about backporting fixes lately :/
<johnw> what branch are you no?
<LnL> I just use master
<johnw> oh, I have a really awesome Emacs keybinding for updating the sha of a fetchurl/git/FromGitHub/etc.
<johnw> i just hit C-. u, and it does a fetch in the background and updates the sha256 in place
<LnL> whoa!
<LnL> that's pretty neat
<johnw> I got tired of every other way of doing it
<infinisil> johnw: damn that's pretty neat
<johnw> I also add a pseudo "# date = " field, so you can know how recent that timestamp is supposed to be
manveru has quit [Read error: Connection reset by peer]
manveru has joined #nix-darwin
<johnw> LnL: how does your fzf-git stuff work actually?
<LnL> git checkout ^gh
<LnL> or whatever
<johnw> and then what key to invoke the completion?
<LnL> the completion expands ** by default
<johnw> so, I type ^gh**<TAB>?
<LnL> git checkout **<tab>
<johnw> ahh
<LnL> no those are 2 different things
<LnL> fzf-git are the keybindings
<johnw> I'm confused
<johnw> so what do I type exactly?
<LnL> the completions is a bunch of commands like git/ssh/kill with with **<tab> instead of a regular tab