<johanot>
it's basically just a specific point in time in a nixpkgs repo which I chose to pin the hosts to.
<johanot>
It's optional, basically. You might as well point to a nixpkgs-channel or to a local nixpkgs checkout if you prefer that
<johanot>
Then it builds the NixOS system based on the NixOS configuration and the selected pin of nixpkgs
<johanot>
copies required paths to remote nix store and performs a switch to the new configuration on the remote host.
<johanot>
There are many ways of deploying NixOS hosts, tried NixOps or morph? (disclosure: I'm co-author of the latter) :)
adamt has joined #nixos-kubernetes
<therealwaphire[m>
I haven't tried either
<therealwaphire[m>
I have a hard time understanding how NixOps works
<johanot>
NixOps is well documented :) I've used it for provisioning NixOS hosts to Hetzner (german bare-metal provider)
<therealwaphire[m>
I use Hetzner too, haha
<therealwaphire[m>
you use cloud or baremetal?
<johanot>
but I usually deselect NixOps for my daily nix deployment work, because I don't need all the provisioning stuff. I use bare-metal :)
<therealwaphire[m>
say, the way I install NixOS into my baremetal server is by kexec'ing through live image, copy pasting my configuration (https://gitlab.com/psyozu/nix-init) and then executing the script
<therealwaphire[m>
can this be automated with NixOps?
<therealwaphire[m>
<freenode_joh "but I usually deselect NixOps fo"> same
<therealwaphire[m>
I mean, I use baremetal too. I'm just wondering if automating this is something NixOps is capable of
<johanot>
therealwaphire[m: so you run ./install.sh in the Hetzner rescue system today?
<therealwaphire[m>
I mean, yeah whenever I have to install
<johanot>
right :P "zapping all present partition tables" would hurt if you did it for every reboot. hehe
<johanot>
NixOps can automate ./install.sh for you basically yes. With some exceptions, but anyway you'd get a running NixOS system, which you can then later ssh to and switch
<therealwaphire[m>
<freenode_joh "right :P "zapping all present pa"> of course :P
<therealwaphire[m>
that's just for installation
<johanot>
Provisioning, intentionally, is outscoped for https://github.com/DBCDK/morph/ . Provisioning is non trivial, always.
<ixxie>
johanot: oh cool that was open-sourced!
<ixxie>
Missed the memo
<srhb>
What was?
<srhb>
Where's muh logs. q_q
<ixxie>
morph!
<srhb>
Ooh.
<johanot>
ixxie: sorry.. didn't think of spamming you :P we did is while we were at Nixcon London
<ixxie>
aha cool
<ixxie>
no worries I haven't touched my deployment since the autumn
<ixxie>
we opted to start with something lighter than Kubernetes
<johanot>
may I ask what? :)
<ixxie>
docker-compose -.-
<ixxie>
we are just prototyping
<ixxie>
so its okay at this point
<ixxie>
compose / swarm...
<johanot>
well thats fine.. iirc you were just beginning to containerize your apps last time we talked?
<ixxie>
this is all a side project and we are still pivoting the concept
<ixxie>
at work I have long deployer a containerized microservice
<ixxie>
and in the coming weeks will move it over to Kube
<adamt>
Has swarm learned to restart failed pods? When we looked at it at v0.4 it couldn't :p
<ixxie>
haven't touched swarm yet
<johanot>
ixxie: Nice! on NixOS?
<ixxie>
no :(
<johanot>
sad panda
<ixxie>
on AZURE of all things
<ixxie>
anyway
<ixxie>
my side-project is an aspiring startup
<ixxie>
if fundraising succeedes I am committed to poaching a distributed Nix/OS team including you johanot, and srhb
<ixxie>
xD
<adamt>
Don't poach him, that'll leave too much work for me. =/
<ixxie>
lol
<ixxie>
I can poach you too
<ixxie>
muahah
<srhb>
The Great Danish NixOS Exile of 2019
<johanot>
:D
<johanot>
The Great Danes?
<adamt>
We joked about what the company would do if the plane to NixCon 2018 crashed with all of us in it. :P
<srhb>
I think Victor Borge's estate might sue us for using that...
<srhb>
lol.. Yeah, that would be.. Bad.
<srhb>
Imagine my (potential) paycheck though
<srhb>
I mean, sad... :(
<adamt>
It would make me wish for an afterlife, so we could look down at the confused souls
<srhb>
Oh, wait, the great dane was nhøp, not victor borge. Derp.
<adamt>
I'm pretty sure we would be ok as long as our mascot was a great dane
<srhb>
\o/
<ixxie>
then Heaven would finally have proper Infrastructure as Code