00:09
philr has joined #nix-darwin
00:47
carlosdagos has joined #nix-darwin
00:47
philr has quit [Ping timeout: 276 seconds]
01:15
ryanartecona has quit [Quit: ryanartecona]
02:06
johnw has joined #nix-darwin
02:32
gu3 has quit [Ping timeout: 252 seconds]
03:18
dustinm has quit [Quit: Leaving]
03:27
dustinm has joined #nix-darwin
03:28
andreabedini has joined #nix-darwin
04:00
johnw has quit [Ping timeout: 276 seconds]
04:26
johnw has joined #nix-darwin
05:21
<
ejpcmac >
LnL: Thank you :)
05:39
contrapumpkin has joined #nix-darwin
05:41
copumpkin has quit [Ping timeout: 256 seconds]
05:44
contrapumpkin has quit [Ping timeout: 276 seconds]
05:46
dmj` has quit [Quit: Connection closed for inactivity]
08:20
carlosdagos has quit [Quit: Connection closed for inactivity]
08:22
__Sander__ has joined #nix-darwin
08:29
<
{^_^} >
#45365 (by nikitavoloboev, 3 hours ago, open): nix-env:1: maximum nested function level reached error
08:29
<
nikivi >
I am wondering if its perhaps a macOS specific issue
08:29
<
nikivi >
couldnt find anything online
08:29
<
nikivi >
I can't install any packages now :(
08:39
<
LnL >
hrm, never seen that before
08:40
<
nikivi >
any way to debug the cause of it?
08:44
<
LnL >
first thing to figure out is if it's the client or daemon
08:45
<
LnL >
does this work? nix-instantiate '<nixpkgs>' -A google-cloud-sdk
08:45
<
nikivi >
warning: you did not specify '--add-root'; the result might be removed by the garbage collector
08:46
<
nikivi >
/nix/store/qhrppr72vgpz2ab8yplmdwnydwr8pp8p-google-cloud-sdk-206.0.0.drv
08:46
<
LnL >
ok so it's not evaluation, what about nix-build?
08:47
<
nikivi >
nix-build '<nixpkgs>' -A google-cloud-sdk?
08:47
<
LnL >
yeah, or nix-store -r /nix/store/qhrppr72vgpz2ab8yplmdwnydwr8pp8p-google-cloud-sdk-206.0.0.drv
08:47
<
nikivi >
get this back /nix/store/p5b3jl778yfrix1wxxswydrwkq0bd8wq-google-cloud-sdk-206.0.0
08:49
<
LnL >
did you get download/build output before the failure?
08:49
philr has joined #nix-darwin
08:49
<
nikivi >
which failure?
08:49
<
nikivi >
just to be clear I could use nix properly and nix install everything
08:50
<
nikivi >
at some point I did start getting this error, not sure what the cause is
08:50
<
LnL >
uh oh, so it just continues?
08:50
<
nikivi >
didn't do anything strange with nix either, just nix-env -iA stuff
08:50
<
nikivi >
i can't install any package
08:50
<
nikivi >
nix-env -iA tree
08:51
<
LnL >
but it still gets added to your profile?
08:51
<
nikivi >
which tree -> tree not found
08:51
<
nikivi >
not sure what you mean by profile
08:52
<
LnL >
a set of packages installed with nix-env is a profile
08:52
<
LnL >
so it does not get installed
08:53
<
LnL >
what if you run the exact same command but add --profile /tmp/foo
08:53
<
nikivi >
nix-env -iA --profile /tmp/foo
08:53
<
nikivi >
nix-env -iA tree --profile /tmp/foo
08:53
<
LnL >
(that creates and uses a new profile instead of using the default one)
08:53
periklis has joined #nix-darwin
08:54
<
nikivi >
same error
08:54
<
nikivi >
nix-env:1: maximum nested function level reached
08:54
<
LnL >
and nothing foo related got created in tmp?
08:55
<
nikivi >
nothing foo in /tmp
08:56
<
LnL >
what about eg. nix-env --set /nix/store/p5b3jl778yfrix1wxxswydrwkq0bd8wq-google-cloud-sdk-206.0.0 --profile /tmp/foo
08:56
<
nikivi >
nix-env:1: maximum nested function level reached
08:57
<
LnL >
well... I didn't expect that
08:57
<
LnL >
and nix-env -qaP -A tree
08:57
<
LnL >
for the evaluation side
08:58
<
nikivi >
nix-env -qaP -A tree
08:58
<
nikivi >
nix-env:1: maximum nested function level reached
08:58
<
nikivi >
I feel like I am going to have to reinstall nix
08:58
<
nikivi >
thing is I've done nothing out of the ordinary
08:58
<
nikivi >
just installed packages
08:59
<
LnL >
can you do anything with nix-env?
08:59
<
nikivi >
give me an example
08:59
<
nikivi >
im not a power user, just install packages
08:59
<
LnL >
dunno, nix-env -q?
08:59
<
nikivi >
same error
08:59
<
nikivi >
seems that i cant
08:59
<
LnL >
that lists installed packages without touching anything
08:59
<
LnL >
ok, what version is this?
09:00
<
nikivi >
nix-env --version?
09:00
<
nikivi >
nix --version
09:00
<
nikivi >
nix (Nix) 2.0.4
09:00
<
LnL >
whoa! a command that works
09:01
<
LnL >
where is it installed? command -v nix-env
09:01
<
nikivi >
just gives back: nix-env
09:01
<
nikivi >
I feel retarded now
09:02
<
LnL >
I suspect that's because it's an alias/function
09:02
<
nikivi >
whence -f nix-env gives
09:02
<
nikivi >
nix-env () {
09:02
<
nikivi >
nix-env -iA nixpkgs."$1"
09:02
<
nikivi >
I cant find where I defined that
09:02
<
nikivi >
and why on Earth I would do that
09:02
<
LnL >
nix-env -A tree doesn't work by default, it would be nix-env -A nixpkgs.tree or nix-env -f '<nixpkgs>' -A tree
09:03
<
nikivi >
its not defined in my dotfiles
09:03
<
LnL >
you don't want that, you've been running nix-env -iA nixpkgs."-iA" tree :)
09:04
<
nikivi >
so how do I fix this
09:04
<
LnL >
oh and recursively :p
09:04
<
nikivi >
I dont get where this function is coming from
09:04
<
nikivi >
only nix related plugin I use
09:04
<
nikivi >
will try cut it out and see
09:04
<
LnL >
so that's the issue, it's a bash error message
09:05
<
nikivi >
but thats bound to ni
09:05
<
nikivi >
it doesnt affect nix-env
09:05
<
nikivi >
I just use it as shorthand to install stuff
09:08
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:08
<
LnL >
it also works better for your ni alias, since it works for multiple attributes instead of just one
09:08
<
nikivi >
will use that
09:09
alexteves has joined #nix-darwin
09:09
<
nikivi >
the above zsh plugin comes with ni alias
09:09
<
nikivi >
nix-env -iA
09:09
<
nikivi >
so I can just do 'ni tree'
09:10
<
nikivi >
and things right?
09:10
<
LnL >
it's prefixed tho
09:10
<
nikivi >
calling it nix-env
09:11
<
nikivi >
then I can't do 'nix-env -q'
09:11
<
LnL >
(not saying it's a great idea tho)
09:12
<
nikivi >
unalias ni
09:12
<
nikivi >
command nix-env -f '<nixpkgs>' "$@"
09:12
<
nikivi >
I did this
09:12
<
nikivi >
would that cause problems?
09:12
<
nikivi >
unalias ni so I get rid of ni alias defined by that plugin
09:12
<
LnL >
no, but you probably want to add -iA for that one
09:13
<
LnL >
and I'm not sure what the priorities are of aliases vs functions, the unalias might not be necessary
09:13
<
nikivi >
command nix-env -fiA '<nixpkgs>' "$@"
09:13
<
nikivi >
command nix-env -f -iA '<nixpkgs>' "$@"
09:13
<
nikivi >
not sure if I can mix them
09:14
<
LnL >
nix-env -f '<nixpkgs>' -iA "$@" or nix-env -iA "$@" -f '<nixpkgs>'
09:14
<
LnL >
-f takes an argument
09:14
<
nikivi >
thanks got it :)
09:14
<
nikivi >
appreciate your time
09:14
<
nikivi >
I've been working on a little project myself maybe you like too as you use macOS
09:15
__Sander__ has quit [Ping timeout: 240 seconds]
09:15
__Sander__ has joined #nix-darwin
09:15
<
nikivi >
a DSL to easily remap your keyboard, it's quite powerful
09:15
<
LnL >
nm, now you just have to figure out where the nix-env function comes from :)
09:15
<
nikivi >
/nix/var/nix/profiles/default/bin/nix-env
09:16
<
nikivi >
oh you meant that
09:16
<
LnL >
no the (wrong) zsh function
09:16
<
nikivi >
I made that function myself thinking it was right lol
09:16
<
LnL >
that caused the recursion
09:16
<
LnL >
ah thought you couldn't find it
09:16
<
nikivi >
it worked up until it didnt
09:16
<
nikivi >
I was looking for nix-env functions
09:17
<
nikivi >
because I didn't think ni() would have anything to do with this
09:17
<
nikivi >
as when you call nix-env that function shouldnt play a role
09:17
<
nikivi >
feels good to finally get to install stuff
09:18
<
nikivi >
native as in?
09:18
<
nikivi >
macOS builtin?
09:18
<
nikivi >
thats super limited though
09:19
<
nikivi >
I should really get to read more of nix-darwin
09:19
<
nikivi >
I am trying to nixify more and more things
09:20
<
nikivi >
I asked this in #nixos recently
09:20
<
nikivi >
but how do you deal with nixifying secrets
09:20
<
nikivi >
such as ~/.ssh
09:22
<
LnL >
depends what you want, I can remap ±§ -> `~ of the weird keyboard layout of my work machine for example
09:23
<
LnL >
yeah, secrets really don't belong in nix
09:24
<
LnL >
but keypairs should be handled by something else
09:24
andreabedini has joined #nix-darwin
09:25
<
LnL >
I'd like to look into integrating with vault sometime
09:25
<
nikivi >
what about Apple Keychain
09:25
<
LnL >
hmm, that's also an option
09:26
<
LnL >
but I'm a big fan of vault :)
09:26
<
nikivi >
btw are you going to be giving a talk at nixcon?
09:27
<
LnL >
I probably should, but don't like giving presentations :p
09:28
<
LnL >
I'll be there tho
09:34
periklis has quit [Ping timeout: 276 seconds]
10:15
periklis has joined #nix-darwin
11:19
jtojnar has quit [Remote host closed the connection]
11:25
philr has quit [Quit: WeeChat 2.2]
11:34
jtojnar has joined #nix-darwin
11:41
periklis has quit [Ping timeout: 276 seconds]
11:51
trcc has joined #nix-darwin
12:01
trcc_ has joined #nix-darwin
12:04
trcc_ has quit [Read error: Connection reset by peer]
12:04
trcc__ has joined #nix-darwin
12:05
trcc has quit [Ping timeout: 272 seconds]
12:05
<
disasm >
I'd love to have vault integration in nixops and nix-darwin :)
12:13
periklis has joined #nix-darwin
12:28
periklis has quit [Remote host closed the connection]
12:29
periklis has joined #nix-darwin
12:29
<
LnL >
basic nixos integration would be a the first step, like eg. signed ssh keys that get rotated automatically or the pam module
12:42
copumpkin has joined #nix-darwin
12:52
periklis has left #nix-darwin ["ERC (IRC client for Emacs 26.1)"]
12:53
trcc__ has quit [Remote host closed the connection]
12:53
trcc has joined #nix-darwin
13:42
trcc has quit [Remote host closed the connection]
15:11
ryanartecona has joined #nix-darwin
15:27
dmj`_ has joined #nix-darwin
15:50
__Sander__ has quit [Quit: Konversation terminated!]
17:13
ryanartecona has quit [Quit: ryanartecona]
17:29
ryanartecona has joined #nix-darwin
18:23
<
gchristensen >
LnL: mind helping me out with some darwin stuff? I'm a bit confused
18:25
<
gchristensen >
oh hrm
18:25
<
gchristensen >
seems my --login shell needs -i too
18:28
<
LnL >
what do you mean by that?
18:31
<
gchristensen >
I was running `ssh host bash --login my-test-script` which was failing: no Nix in the PATH
18:31
<
gchristensen >
ssh host bash -i (interactive) also failed
18:31
<
gchristensen >
but ssh host bash --login -i my-test-script worked
18:33
<
LnL >
ssh mac1 -- echo '$PATH' #=> /usr/bin:/bin:/usr/sbin:/sbin
18:34
<
LnL >
ssh mac1 -- ln -s /etc/bashrc ~/.bashrc
18:34
<
LnL >
ssh mac1 -- echo '$PATH' #=> /Users/nix/.nix-profile/bin:/run/current-system/sw/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin
18:35
<
LnL >
doesn't work for you?
18:36
<
LnL >
cat /etc/bashrc.orig # => if [ -z "$PS1" ]; then; return; fi
18:36
<
gchristensen >
yarr
18:36
<
LnL >
that the problem?
18:36
<
gchristensen >
I think o
18:36
<
gchristensen >
it "Works" but I'm testing the installer against vanilla images to see how they work, I don't want to excessively change the host to support the test -- it sort of defeats the purpose :)
18:39
<
LnL >
nix-darwin to the rescue! just overwrite apple's weird defaults
18:40
<
LnL >
that reminds me, stickers
18:41
<
gchristensen >
also defeats the purpose :P
18:41
<
gchristensen >
I want to make sure the installer results in a reasonable install
18:41
<
LnL >
yeah, I'm joking
18:41
<
gchristensen >
ok :)
18:42
<
LnL >
so, does the default ~/.bashrc also have that conditional?
18:42
<
gchristensen >
not sure, will check
18:42
<
gchristensen >
date --date '2 weeks ago saturday'
18:43
<
gchristensen >
Sat Aug 11 00:00:00 EDT 2018
18:43
<
gchristensen >
impressive
18:44
<
LnL >
I lost my svg :(
18:44
<
gchristensen >
oh :(
18:47
periklis has joined #nix-darwin
18:53
<
LnL >
oh, I found irc logs from the beginning of 2016
18:55
<
LnL >
what a mess...
18:56
<
periklis >
irc logs are always a good can full of jokes
18:57
<
LnL >
I have a file with a bunch of quotes from people :p
18:57
<
gchristensen >
uh oh
19:00
<
periklis >
time for a blog post with "best of nix-darwin"
19:01
<
LnL >
oh, I wonder if this pfctl stuff still works
19:04
ryanartecona has quit [Quit: ryanartecona]
19:11
periklis has quit [Ping timeout: 244 seconds]
19:19
<
gchristensen >
oh cool
19:33
<
LnL >
what's up with all this weird stuff in the nixos logo?
19:34
<
gchristensen >
like weird paths?
19:37
<
gchristensen >
if I had to guess it is junk from inkscape or something
19:38
<
LnL >
the layering is also pretty weird
19:39
<
LnL >
there are lambdas behind the lambdas
19:40
<
gchristensen >
lol ...
19:42
<
LnL >
and the bottom left one is slightly misaligned
19:42
<
gchristensen >
hoo boy
19:44
<
LnL >
see the double layer there
19:45
<
LnL >
wait, there's 3d one there!
19:49
<
LnL >
^ 2kb instead of 26kb
19:55
<
gchristensen >
hrm, it seems different
19:55
<
gchristensen >
on purpose?
20:20
pikajude has quit [Remote host closed the connection]
20:21
pikajude has joined #nix-darwin
20:21
<
LnL >
no, what's different?
20:34
johnw has joined #nix-darwin
21:08
pikajude has quit [Remote host closed the connection]
21:08
pikajude has joined #nix-darwin
21:13
<
LnL >
oh I didn't export it correctly, the size was wrong
21:14
<
LnL >
ok I stared at hexley long enough for one day...
21:14
<
LnL >
gchristensen: what size/type do you recommend for stickers?
21:16
<
gchristensen >
3" tops
21:16
<
gchristensen >
I go 2-3"
21:21
<
gchristensen >
looks great!
21:22
<
gchristensen >
when the tips of the lamdas make a > are the lengths even?
21:24
<
gchristensen >
it looks great
21:24
<
LnL >
yeah, I think it's the same size
21:24
<
cransom >
my allegiances change too often to commit to a sticker on a laptop. but wet erase markers attached to 3d printers, that lasts just long enough.
21:25
<
gchristensen >
you're not stuck to NixOS enough for a sticker?
21:26
ryanartecona has joined #nix-darwin
21:27
<
cransom >
maybe a nix lambda will be my first tattoo!
21:27
<
gchristensen >
no sticker but yes tattoo, you are quite the man
21:29
<
cransom >
hrm. this does give me an idea though.
21:30
<
gchristensen >
a subcutaneous NixOS implant?
21:35
<
cransom >
maybe! we'll see if i follow through when i get to london in october.
21:36
<
gchristensen >
lololol
21:47
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:06
ryanartecona has quit [Quit: ryanartecona]
22:30
<
LnL >
yay, the author of Hexley sounds excited about the logo :)
22:32
<
gchristensen >
nice what is hexley?
22:33
<
LnL >
the platypus, I can't draw something like that
22:38
hamishmack has joined #nix-darwin
23:24
{^_^} has quit [Remote host closed the connection]
23:25
{^_^} has joined #nix-darwin
23:28
<
LnL >
what a buggy mess is this, and I used submodules!
23:32
<
gchristensen >
oh cool
23:32
<
gchristensen >
(hexley)
23:32
<
gchristensen >
what is a mess?
23:32
<
LnL >
my old project :p