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