A driver to run Nix jobs on Nomad
example | ||
executor | ||
nix2 | ||
.gitignore | ||
GNUmakefile | ||
go.mod | ||
go.sum | ||
LICENSE | ||
main.go | ||
README.md |
Nomad Nix Driver Plugin
A Nomad driver to run Nix jobs.
Uses the same isolation mechanism as the exec
driver.
Partially based on nomad-driver-nix
Requirements
Building and using the Nix driver plugin
To build the plugin and run a dev agent:
$ make build
$ nomad agent -dev -config=./example/agent.hcl -plugin-dir=$(pwd)
# in another shell
$ nomad run ./example/example-batch.hcl
$ nomad run ./example/example-service.hcl
$ nomad logs <ALLOCATION ID>
Writing Nix job specifications
See documentation comments in example HCL files.