munch has joined #nix-darwin
Sonarpulse has quit [Ping timeout: 256 seconds]
johnw_ has quit [Quit: Textual IRC Client: www.textualapp.com]
philr has joined #nix-darwin
ambrosia has quit [*.net *.split]
benley has quit [*.net *.split]
ambrosia has joined #nix-darwin
benley has joined #nix-darwin
shlevy has quit [*.net *.split]
gridaphobe has quit [*.net *.split]
nkpart has quit [*.net *.split]
adelbertc has quit [*.net *.split]
dredozubov has quit [*.net *.split]
shlevy has joined #nix-darwin
nkpart has joined #nix-darwin
adelbertc has joined #nix-darwin
gridaphobe has joined #nix-darwin
dredozubov has joined #nix-darwin
hamishmack has quit [Ping timeout: 240 seconds]
acowley has quit [Ping timeout: 264 seconds]
shlevy has quit [Quit: Quit]
hamishmack has joined #nix-darwin
philr has quit [Quit: WeeChat 2.0.1]
benley has quit [Quit: WeeChat 1.9.1]
periklis has joined #nix-darwin
<johnw> LnL: just found your nix-docker stuff!
<LnL> hah
<johnw> too awesome
<johnw> I needed this tonight, and there you are again, rocking my nix world :)
<LnL> :D
<johnw> are you an Emacs user?
<LnL> nope, vim
<johnw> how do I nix-build just the dependencies of a project, but not the project itself?
<johnw> I want to create a layer in this Dockerfile that contains everything my default.nix needs
<LnL> nix-shell kind of does that
<johnw> true
<johnw> but that needs a shell.nix
<johnw> I was hoping to use only the default.nix
<johnw> interesting, just .env
<LnL> also, if you don't need nix inside of the container you should look at the dockerTools in nixpkgs
<johnw> I need nix in the container
<johnw> the whole point of this exercise is for me to be able to fully specify my entire application using Nix, and then deliver a Dockerfile to someone who doesn't know or care or want to know about Nix, so that all they have to do is type "docker build ."
<LnL> ah cool
<johnw> yeah, so your stuff is perfect
<johnw> if they were a fellow nix user, I'd totally go the dockerTools route, which would actually be better as an end result
<johnw> but their machine doesn't have Nix and so couldn't build it
<LnL> I know a few people also use it for CI stuff at work
<johnw> yeah, it's a great idea
<LnL> including myself, since I set my master plan in motion
<johnw> sometimes you want Nix on the outside declaring what goes into the image; other times you want Nix on the inside so you can still declare but insulate others who will want to build that image themselves
<LnL> well ideally every host has nix, then you can get rid of that annoying docker part ;)
<johnw> yeah
<johnw> well, except that nix can't make containers for me on Mac
<dhess> these folks are doing macOS "containers," of a sort. https://veertu.com
<dhess> I haven't tried it yet
<LnL> aren't those the guys that made a ui for xhyve
<dhess> yeah. Unfortunately they abandoned that to work on this new thing.
<dhess> It was quite nice. All it needed (for me, anyway) was USB passthrough support.
<johnw> LnL: how do I configure nixpkgs within nix-docker?
<LnL> whaaa, this new thing looks awesome to run my tests in
<LnL> to reduce the size you'd build the base system yourself based on the same nixpkgs version
<johnw> LnL: your nix-docker will also give me a Linux builder for making other Docker images with dockerTools :)
<dhess> LnL: oh if you end up using it I'd love to hear how it works
<LnL> but you can change NIX_PATH to whatever you want
<johnw> LnL: I meant, creating the equivalent of a ~/.nixpkgs/config.nix. Ah, I point to it with NIX_PATH
<LnL> somebody made a blogpost about that, for nixos demployment https://medium.com/@zw3rk/provisioning-a-nixos-server-from-macos-d36055afc4ad
<johnw> sweet!
<johnw> is NixOps better these days?
<dhess> johnw: you mean from macOS?
<johnw> dhess: yeah, I had heard it was a hacky bunch of Perl 3 years ago
<johnw> which couldn't hold up to serious deployment scenarios
<dhess> oh you mean in general I guess
<LnL> it's python AFAIK
<dhess> it is Python.
<johnw> how do I build only dependencies the way nix-shell does, but using nix-build and a typical default.nix file?
<dhess> anyway I use it for everything now, but more importantly, companies like IOHK are using it for commercial deployments as well
<dhess> and SnabbLab
<LnL> I have a machine deployed somewhere, but the only thing I do is upgrade it every 6moths after changing like 2 lines in the configuration :p
<johnw> dhess: nice
<dhess> NixOps has completely changed the way I work. It's fantastic.
<dhess> deploy a new machine in about 5 minutes with one command
<johnw> dhess: I'd love to see a writeup
<dhess> johnw: I am slowly publishing most of the stuff on GitHub, so there'll be that, at least. And domenkozar has given a few talks about it that you can find on Youtube
johnw_ has joined #nix-darwin
johnw has quit [Ping timeout: 256 seconds]
<johnw_> do I identify config.nix with config=config.nix or nixpkgs-config=config.nix?
<johnw_> ah, NIXPKGS_CONFIG
<dhess> LnL: can that nix-docker run NixOS tests?
<LnL> no, you need qemu for that
<dhess> oh bummer
<LnL> or if it works it’s insanely slow
<LnL> you can try adding supportedSystems = [ "kvm" ]; to the builder config
<dhess> I suspect you're right, it's going to fail outright or run in emulation mode
<dhess> although maybe qemu does what VMware used to do on non-vmx-enabled hosts and patches privileged instructions on the fly?
<dhess> that wouldn't be too bad
<LnL> I remember running nixos-rebuild build-vm in a veertu vm once and that was basically unusable
<LnL> but I didn't know about virtualisation.graphics = false; so maybe it's fine with console only
<dhess> I used to use Veertu for NixOS and it was OK. I don't think I ran any VMs though.
<periklis> can someone with macos sandbox-knowledge elaborate if we can run integration tests on a postgres bootstrapped and run during nix-build isolation?
<dhess> huh I wonder if I should be using virtualisation.graphics = false
<LnL> I made an, euh... cool thing
<LnL> but don't use that without the nix-daemon
<dhess> periklis: I *think* johnw did something like that with MySQL recently
<johnw_> I almost got it working
<johnw_> just need to figure out how to talk to the database
<LnL> the hydra testsuite does something similar, not sure why it's not working on darwin
<LnL> maybe the unix socket?
<johnw_> i was doing this on NixOS
<johnw_> search for buildPhase
<johnw_> once I get the user thing working, I think I'm done actually
<johnw_> but I can't get mysql to tell me WHY it isn't workin
<periklis> actually i am on this hydra think and although i see in top the postgres up and running i don't get always resultsets
<johnw_> no password? bad grant table? bad unix permissions? it could be lots of things
<LnL> I'm using that postgres thing at work so it works FWIW
<johnw_> sadly, all my backup data is in mysql
zzamboni has joined #nix-darwin
zzamboni has quit [Client Quit]
zzamboni has joined #nix-darwin
hamishmack has quit [Quit: hamishmack]
hamishmack has joined #nix-darwin
periklis has quit [Ping timeout: 240 seconds]
periklis has joined #nix-darwin
nkpart has quit [Quit: Connection closed for inactivity]
shlevy has joined #nix-darwin
peacememories has joined #nix-darwin
peacememories has quit [Client Quit]
peacememories has joined #nix-darwin
peacememories has quit [Client Quit]
peacememories has joined #nix-darwin
peacememories has quit [Client Quit]
peacememories has joined #nix-darwin
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
peacememories has joined #nix-darwin
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
peacememories has joined #nix-darwin
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
peacememories has joined #nix-darwin
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
peacememories has joined #nix-darwin
peacememories has quit [Client Quit]
peacememories has joined #nix-darwin
peacememories has quit [Client Quit]
peacememories has joined #nix-darwin
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
peacememories has joined #nix-darwin
peacememories has quit [Client Quit]
Sonarpulse has joined #nix-darwin
<shlevy> Anyone have any hints for https://github.com/NixOS/nixpkgs/issues/32080 ?
<shlevy> copumpkin: ^
<copumpkin> no clue, sorry
<copumpkin> xcbuild has an xcrun that works with nix in it
<copumpkin> but I can't look more carefully
<shlevy> OK
<shlevy> thanks
<LnL> I know abbradar tried to get it working
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
zzamboni has quit [Ping timeout: 256 seconds]
periklis has quit [Ping timeout: 240 seconds]
benley has joined #nix-darwin
nixy has joined #nix-darwin
nixy has left #nix-darwin [#nix-darwin]
<dhess> somebody broke pinentry-mac on the 17.09-darwin channel
<contrapumpkin> and now somebody can fix it! :D
* contrapumpkin touches his nose with shifty eyes
<dhess> contrapumpkin: is this error indicative of any kind of systematic issue? 'ld: malformed 32-bit x.y.z version number: 91423'
<LnL> eh
<LnL> runtime or built time
<copumpkin> not sure. I feel like I've seen that before, but I don't remember much about it
<dhess> build time
<dhess> copumpkin: yeah, same
<LnL> huh, why didn't my darwin build fail then gnupg depends on that
<dhess> I am looking at the changelog for the build and I don't see anything that should have affected pinentry-mac
<dhess> let me restart this build
<LnL> wat, it's installed in my user profile
<dhess> nope, failed again
<dhess> LnL: weird, nothing obvious in the changelog from working build to broken build. Looked like just a bunch of package updates to me
<LnL> yeah, I'll bisect
<dhess> I want a bisect feature in Hydra :)
<LnL> was just thinking of making an alias that does that :p
<LnL> I already have all of the building blocks
<dhess> would it just keep creating jobsets or something?
<LnL> oh no, build locally
<LnL> but query the hydra api for the last good/bad revision
<dhess> oh I see
<LnL> I get 7880caca48ca3b0f7f3157b8d9be79a52b457240
<dhess> xml :(
<dhess> every time I see libxml being used I pour one out for s-expressions
acowley has joined #nix-darwin
<LnL> testing a possible fix, since it works on master
<LnL> btw, how do you guys handle GPG_TTY for remote machines?
<LnL> thinking of setting that in a test -n "$TMUX"
<dhess> I'm using the `extra-socket /Users/dhess/.gnupg/S.gpg-agent.extra` trick now with ssh forwarding
<dhess> it's so nice.
<dhess> it does occasionally fail to work for reasons I haven't figured out. Once in awhile my NixOS box where I'm tramp-editing will start a local gpg-agent rather than fowarding to my local one
<LnL> https://git.io/vN0bt, thanks to copumpkin :)
<LnL> xcbuild is still pure black magic to me
<copumpkin> it's a pity Apple hired the main developer (away from facebook) and effectively killed development
<copumpkin> luckily for us, it basically does what we need
<LnL> oh really :/
<acowley> To be fair, Apple has a vested interest in trying to understand how xcbuild works.
<copumpkin> why?
<acowley> So they can compile their software
<copumpkin> but they have xcodebuild
<acowley> So they're not switching to nix-darwin?
<copumpkin> any day now!
<dhess> Apple is so confusing
<LnL> maybe they already did, but nobody knows
<acowley> LnL: When you start getting 20k bug reports a day, you should ask them for a raise
<dhess> oooh Jonathan Levin's MacOS and iOS Internals Vol I book is available now
hamishmack has quit [Quit: hamishmack]
<LnL> you can pass it something like hello.x86_64-darwin or a full job url
johnw_ is now known as johnw
johnw has joined #nix-darwin
johnw has quit [Changing host]
<LnL> oh wow, the xcbuild update fixed a bunch of stuff https://hydra.nixos.org/eval/1427497#tabs-now-succeed
<johnw> do you have your hydra setup for building your config documented anywhere?
<johnw> where do you host your hydra?
<LnL> that's my desktop
<johnw> how can I setup the same thing here?
<LnL> if you have a nixos machine I can send you some info
<johnw> how are you building for darwin? just by remote builders?
<johnw> so your hydra is nixos?
<LnL> yeah
<LnL> I think this has most of the relevant stuff for hydra itself https://gist.github.com/LnL7/fcd5c0bf772f2165a1ac40be6617d2f4
<johnw> i'm not quite sure what to do with these two files
<johnw> neither refers to the other
<LnL> the jobset config points to the darwin release.nix
<johnw> where is jobset config?
<johnw> i don't see any mention of release.nix
<johnw> just the file itself
<LnL> in the ui ration
<johnw> you set that up with a UI, rather than a .nix file?
<johnw> I guess I need to read some hydra walkthroughs
<johnw> I guess I was hoping to mostly copy what you had
<LnL> you can create a declarative jobset, but I've not really looked at that
<LnL> btw, I just partially automated my cache upload
<LnL> it only syncs recent stuff so I don't end up with a giant bucket