Commit Graph

9 Commits

Author SHA1 Message Date
Igor Ramazanov
49c7be3e05 fix: NixOS module: fix /etc/headplane/config.yaml generation 2025-03-11 22:49:22 +00:00
Igor Ramazanov
12592936f1 fix: NixOS module: allow passing bool in services.headplane.settings.* 2025-03-11 22:49:22 +00:00
Igor Ramazanov
a9b0ca3464 fix: NixOS module: generate /etc/headplane/config.yaml from services.headplane.settings 2025-03-11 22:49:22 +00:00
Igor Ramazanov
c526459cef fix: use relative path imports in nix 2025-03-11 22:49:22 +00:00
Igor Ramazanov
22e6460b0c feat: include hp_agent to the NixOS module 2025-03-11 22:49:22 +00:00
Igor Ramazanov
8268de92c4 feat: do not rely on git for versioning
It causes lots of pain when building with `nix` for a local `flake.nix`.

Not sure if it's a good general solution:
* now it requires a manual step of updating `./version` on each release.
* we're losing commit hash abbreviation, like `0.5.3-5-gbe5a291`

I guess, this can be fixed by installing git-pre-commit-hook, but even
then it'd be wrong, because the output of `git describe --tags --always`
won't be the same before and after commit.
2025-03-11 22:49:18 +00:00
Igor Ramazanov
af733eb311 feat: nix: start headplane after headscale 2025-03-11 22:44:46 +00:00
Igor Ramazanov
c6a7a0faa1 feat: build hp_agent with nix 2025-03-11 22:44:46 +00:00
Igor Ramazanov
8c79c4ff04 feat: wip nix
Add initial code to be used when working with `nix` and `NixOS`.

* a Nix flake
* building a package
* a NixOS module
2025-03-11 22:44:46 +00:00