<angerman> Sonarpulse: yea looks like it. Not sure how long I’ll like it :-)
<Sonarpulse> angerman: :D
<pikajude> LnL: tbh, i don't think root should come into it at all on macos
<LnL> yeah, removed the user part
<LnL> also got rid of the prompt stuff
philr has joined #nix-darwin
hamishmack has quit [Quit: hamishmack]
hamishmack has joined #nix-darwin
periklis has joined #nix-darwin
pikajude has quit [Quit: ZNC 1.6.5 - http://znc.in]
pikajude has joined #nix-darwin
the-kenny has quit [Ping timeout: 256 seconds]
the-kenny has joined #nix-darwin
periklis has quit [Ping timeout: 265 seconds]
periklis has joined #nix-darwin
<nikivi> Hey LnL
<nikivi> Do you ever use brew at all?
<LnL> brew: command not found
hamishmack has quit [Ping timeout: 268 seconds]
<nikivi> Is there equivalent of `brew search` in nix darwin
<LnL> to list nixpkgs you can use nix-env -qaP \*
<nikivi> But how can I search if I can install <cmd> on nix darwin
<nikivi> like `brew search go`
<LnL> oh that searches on binary name?
<LnL> nix-index is nice, you can do something like nix-localte /bin/go
<LnL> same with libraries nix-locate /lib/libffi.dylib
<nikivi> command not found: nix-localte
<nikivi> oh locate
<nikivi> Also don't have it :|
<nikivi> I thought I installed nix correctly
<LnL> it's a separate tool
periklis has quit [Remote host closed the connection]
periklis has joined #nix-darwin
szicari has joined #nix-darwin
periklis has quit [Ping timeout: 268 seconds]
<acowley> qt510 seems to have never built on hydra, though the PR that made that update includes LnL being able to build it. Anyone know what's up?
<LnL> what's the error?
<acowley> It looked like the first one you saw in that PR
<acowley> let me dig it up again
<acowley> qcorewlanengine.mm:290:5: error: type arguments cannot be applied to non-parameterized class 'NSArray'
<acowley> NSArray<NSString *> *wifiInterfaces = [CWWiFiClient interfaceNames];
<LnL> hmm, I pushed a patch for that to the pr before it was merged
<acowley> It might be different, I didn't compare them side by side
<acowley> No, it's the same
<acowley>
<acowley> I really need to figure out better automation for a macos build bot for myself.
<acowley> Well that's interesting
<acowley> Maybe it's a channel thing
<acowley> No
<acowley> Broken in the latest trunk evaluation
<LnL> my patch is gone on master
<LnL> gl
<acowley> Neat
<acowley> You actually did some real debugging there, too
<LnL> 75d2a7dc4dd
<acowley> I was looking at 37933209588792db24104dbfaef0106c3bef870d which includes some Obj-C changes
<acowley> Why were they necessary? SDK being old?
<LnL> yeah, your CF doesn't have templated collections yet
<LnL> and accessors don't work on id types so I had to change those back to messages
<LnL> our*
<LnL> :)
szicari has quit [Read error: Connection reset by peer]
szicari_ has joined #nix-darwin
* LnL goes to opensource.apple.com and stares at the coming soon message
<acowley> It's our monolith to ponder
<acowley> Should I comment on that PR about things getting messed up on darwin?
<LnL> I'll fix it in a couple of hours
<acowley> Great, thanks!
pxc has joined #nix-darwin
periklis has joined #nix-darwin
<gchristensen> writing defaults...
<gchristensen> 2018-01-17 13:59:22.672 defaults[61380:6504505] Could not write domain /Library/Preferences/SystemConfiguration/com.apple.smb.server; exiting
<gchristensen> LnL: ^
<LnL> hmm, you also?
<LnL> os verison?
<gchristensen> Darwin Cubert 16.7.0 Darwin Kernel Version 16.7.0: Mon Nov 13 21:56:25 PST 2017; root:xnu-3789.72.11~1/RELEASE_X86_64 x86_64
<gchristensen> 10.12.6
<LnL> hmm, that doesn't even look like the hostname
<LnL> push hooks with the new progress stuff are pretty neat :)
<gchristensen> what do you mean, the hostname LnL?
<LnL> the value is MACBOOK-01F28D for me
<LnL> it's ServerDescription matches the hostname
* gchristensen is confused
<LnL> doesn't matter, disabled it for now :D
<gchristensen> ok
<LnL> I'm doing too many things at the same time
<gchristensen> also, I'm losing this mac today, so :|
<LnL> sorry for the confusion
<LnL> oh
<gchristensen> last day at Tumblr and its a corporate machine
<gchristensen> in ...2hrs I'll be doing a thorough disk whipe
<LnL> thought it was some kind of infra machine
<gchristensen> oh, I have one of those too :)
periklis has quit [Ping timeout: 246 seconds]
<mitchty> is the wipe going to be sudo dd if=/dev/zero of=/dev/rdiskN? :)
philr has quit [Ping timeout: 255 seconds]
<gchristensen> =)
munch has quit [Ping timeout: 268 seconds]
<disasm> /dev/urandom :)
<disasm> although I'd probly do it in target disk mode from another machine :) you want it to finish instead of crashing the system a few seconds in
<disasm> gchristensen: so is this the end of nix-darwin for you?
<mitchty> disasm: pffft, how often do you get to do fun things you aren't supposed to do?
<disasm> mitchty: I'd value the disk wipe being thorough over fun, lol
<mitchty> i had fun doing rm -fr --no-preserve-root / the other day in a vm, mostly because I wanted to see what happened
<disasm> nice :)
<mitchty> eh can dd the zeros to a file first then rm it
<LnL> whoops, it was a server xd
<mitchty> too late now, just hope the dd erases the evidence
<LnL> gchristensen: oh! you could test my uninstaller
<disasm> LnL: wait, we encourage people to uninstall nix-darwin? That doesn't sound like it's in our best interests
<mitchty> is the installer named hotel_california?
<mitchty> err uninstaller
<LnL> lol
<LnL> it's still possible to run rollback if you didn't remove the system profiles
<disasm> ooh, an uninstaller you can rollback? the power of nix!
<LnL> /nix/var/nix/profiles/system-913-link/sw/bin/darwin-rebuild switch -G 913
<disasm> anyways mitchty I did an rm -rf / years before no-preserve-root flag existed, I've had enough fun with that one :)
<acowley> lol
<acowley> "An uninstaller you can rollback" should be on the t-shirt
<disasm> agreed!
<mitchty> disasm: i saw what happens on an hpux server running oracle, it ran for 2 days straight until we noticed we couldn't login
<LnL> can't save you from an rm -rf /nix tho :/
<disasm> mitchty: lol
zarel has joined #nix-darwin
<mitchty> wasn't my script but if you have a shell command like rm -fr /$thing, make sure $thing isn't ''
<disasm> maybe do a stat on $thing to ensure it's actually a directory?
<disasm> although, still bad shell script doing that, lol
<gchristensen> LnL: sure! send instructions :)
<LnL> the installer branch has a small improvement
zarel has quit [Quit: Leaving]
<gchristensen> ok LnL here goes
<gchristensen> there is no installer branch
<LnL> just merged it, master had a typo
<gchristensen> LnL: anything you'd like me to look for?
hamishmack has joined #nix-darwin
<LnL> not sure, does nix still work properly?
<gchristensen> nope :)
<gchristensen> I'm using zsh, so bashrc doesn't help me
<gchristensen> but I'm smart enough to know that I should use zshrc
<LnL> oh
<LnL> yeah, I made it pretty pedantic about bashrc assuming people with a non standard shell kind of know what to do
<gchristensen> :)
<gchristensen> LGTM
<gchristensen> nice!
<LnL> except for the last line
<gchristensen> ohyeah
<LnL> thanks for testing!
<LnL> travis builds have been very low lately
<gchristensen> aye
<LnL> the nix-shell -A uninstall.check should have complained about it
<gchristensen> ok computer, time for erasey time
<gchristensen> see y'all on the other side
szicari_ has quit [Quit: szicari_]
johnw_ has joined #nix-darwin
johnw_ has quit [Client Quit]
johnw_ has joined #nix-darwin
<johnw_> LnL: ping
<LnL> pong
<johnw_> LnL: after rebooting my laptop, I cannot build anything. When trying to do darwin-rebuild switch I get:
<johnw_> error: opening lock file '/nix/store/i0vv3ba3i1mjimcmc303arvvdz60awkr-nix.conf.drv.lock': Permission denied
<johnw_> however, there are no *.lock files in the store
<johnw_> so it looks like it's failing to attempt to create one
<LnL> echo $NIX_REMOTE
<johnw_> note that this didn't happen 4 hours ago, right before I rebooted
<johnw_> it's empty
<LnL> that's not right
<LnL> what about this
<LnL> test -w /nix/var/nix/db || echo foo
<johnw_> just comes back to shell
<johnw_> drwxr-xr-x 6 johnw wheel 204 Jan 17 14:14 db
<LnL> huh
<LnL> that's kind of supposed to be owned by root
<johnw_> if I change it to be owned by root I get:
<johnw_> error: Nix database directory '/nix/var/nix/db' is not writable: Permission denied
<johnw_> when trying to darwin-rebuild switch
<LnL> should be ok now if you start a new shell
<johnw_> so, what got me into this bad state?
<johnw_> hey, that worked!
<johnw_> when I try to home-manager switch, now I get:
<johnw_> error: opening lock file ‘/nix/var/nix/profiles/default.lock’: Permission denied
<johnw_> this all arose because I couldn't use nix-build to build a local Haskell project
<johnw_> drwxr-xr-x 41 root wheel 1394 Jan 17 14:21 profiles
<LnL> I changed that check, basically used to be true -o test -w causing issues for a single user install
<johnw_> ok, now the local haskell build is going
<johnw_> just the home-manager switch is broken
<LnL> not sure about that
<johnw_> error: opening lock file ‘/nix/var/nix/profiles/default.lock’: Permission denied
<johnw_> should johnw own the profiles directory?
<johnw_> should it be g+w group=nixbld?
<LnL> if your ~/.nix-profile points to that
<johnw_> changing ownership to johnw fixes that problem
<LnL> on multi user installs it's usually /nix/var/nix/profiles/per-user/$USER/profile
<johnw_> thanks LnL, I can use my machine again :)
<LnL> guess I forgot to mention the db when you switched to the daemon
<LnL> wait, I thought nix 1.12 didn't need NIX_REMOTE=daemon anymore
johnw_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
johnw_ has joined #nix-darwin
<LnL> n/m it uses the same write check
<johnw_> as far as I know, I never set NIX_REMOTE anywhere
<LnL> that's done for you
<johnw_> ah, ok
<LnL> added a check for that
johnw_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
johnw_ has joined #nix-darwin