Contributing
Contributions are more than welcome!
For organization-wide expectations, see Outskirts Labs Contributing Guide.
A Nix devshell is available, which includes all development dependencies, for contributing to nixos-hetzner.
Enter this shell with:
nix develop
If you use direnv, just run direnv allow and
you will be dropped in this devShell.
Building
# Build a disk image to ./result/
nix build #diskImages.x86_64-linux.hetzner
# Set your HCLOUD_TOKEN
# ref: https://docs.hetzner.com/cloud/api/getting-started/generating-api-token/
export HCLOUD_TOKEN =..
nix run #.apps.x86_64-linux.smoke-test -- --image-path result/nixos-image*img --architecture x86_64
nix run #.apps.x86_64-linux.smoke-test -- --image-path result/nixos-image*img --architecture x86_64 --keep-image-on-failure --debug