mirror of
https://github.com/juanfont/headscale.git
synced 2026-05-07 03:11:00 +09:00
Add missing typed options from the upstream nixpkgs module: - configFile: read-only option exposing the generated config path for composability with other NixOS modules - dns.split: split DNS configuration with proper type checking - dns.extra_records: typed submodule with name/type/value validation Sync descriptions and assertions with upstream: - Use Tailscale doc link for override_local_dns description - Remove redundant requirement note from nameservers.global - Match upstream assertion message wording and expression style Update systemd script to reference cfg.configFile instead of a local let-binding, matching the upstream pattern.
Headscale NixOS Module
This directory contains the NixOS module for Headscale.
Rationale
The module is maintained in this repository to keep the code and module synchronized at the same commit. This allows faster iteration and ensures the module stays compatible with the latest Headscale changes. All changes should aim to be upstreamed to nixpkgs.
Files
module.nix- The NixOS module implementationexample-configuration.nix- Example configuration demonstrating all major featurestests/- NixOS integration tests
Usage
Add to your flake inputs:
inputs.headscale.url = "github:juanfont/headscale";
Then import the module:
imports = [ inputs.headscale.nixosModules.default ];
See example-configuration.nix for configuration
options.
Upstream
The module in this repository may be newer than the nixpkgs version.