title: “Nixops” date: 2018-11-04T10:17:25-06:00 draft: true tags:
- devops
- nix
- nixops
References
https://judsonlester.info/2018/02/10/simple-webservers-with-nixops/ http://sandervanderburg.blogspot.com/2015/03/on-nixops-disnix-service-deployment-and.html https://github.com/NixOS/nixops/tree/master/examples https://spartanengineer.com/nixos/2017/09/25/basic-git-server-with-nixos.html
What is NixOps
NixOps is a tool for deploying NixOS machines en masse. This gives you the ability to not only generate specific machines “declaratively”, but entire networks of machines. NixOps is able to work with the big three (AWS, GCE and Azure) and also Virtualbox, Digital Ocean and others.
Unlike docker or kubernetes, NixOps is built just to provision NixOS. This is not a one-size-fits-all solution but NixOS is capable of pretty much anything you’d use another distro for.
NixOS Containers
https://nixos.org/nixos/manual/index.html#ch-containers
Not completely isolated from host. Root in container can affect the host
create start login update declarative network
Nixops
https://nixos.org/nixops/manual/#chap-installation
declare
boot
manage
Example network
setup on Vultr
what to setup
webserver load balancer database