Add flake build file

This commit adds a flake.nix build file, it can be used for three
things:

Build `headscale` from local or straight from git:

nix build
or
nix build github:juanfont/headscale

Run and Build `headscale` from local or straight from git:

nix run
or
nix run github:juanfont/headscale

Set up a development environment including all our tools,
- linters
- protobuf tooling
- compilers

nix develop
This commit is contained in:
Kristoffer Dalby 2022-03-07 16:51:38 +00:00
parent 15f8cb5034
commit 5de9de14a9
3 changed files with 150 additions and 0 deletions

3
.gitignore vendored
View file

@ -27,3 +27,6 @@ derp.yaml
.idea
test_output/
# Nix build output
result