Commit Graph

14 Commits

Author SHA1 Message Date
Igor Ramazanov
654d09b44d feat: nix: do not hardcode headplane-agent configuration environment variables
To make the module more flexible and to reduce the dependency on the
config API.
2025-03-12 13:31:11 +00:00
Igor Ramazanov
7ad851d49e fix: nix: remove unnecessary sed substitutions
A left over from previous versions.
See: https://github.com/tale/headplane/issues/95#issue-2807487849
2025-03-12 12:47:17 +00:00
Igor Ramazanov
8e5c0c764e feat: nix: add services.headplane.agent.debug option 2025-03-12 11:43:09 +00:00
Igor Ramazanov
d355128a6e fix: nix: fix agent env vars configuration 2025-03-12 11:31:50 +00:00
Igor Ramazanov
cde4b2e9f2 feat: nix: read version from package.json 2025-03-12 11:23:33 +00:00
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