Refactor .nix expressions
bash script to wrap service, get config from etcd
Fix tests
Update docker to run with new nix expressions