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