feat: add dnclient for defined.net managed Nebula VPN - #707
Merged
Conversation
Packages the dnclient v0.9.6 static binary as a custom derivation, overlays it into pkgs, and adds a NixOS service module behind an opt-in genebean.services.dnclient.enable flag. Enables it on nixnuc. Enrollment is done manually once with `sudo dnclient enroll -code <CODE>`; dnclient handles cert rotation automatically after that. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dnclientv0.9.6 (closed-source static Go binary from defined.net) as a custom derivation inpkgs/dnclient/lib/nixpkgs-settings.nixso NixOS modules can referencepkgs.dnclientmodules/genebean/nixos/services/dnclient.nixbehind an opt-ingenebean.services.dnclient.enableflagTest plan
nix build .#dnclientsucceedsnix eval .#nixosConfigurations.nixnuc.config.genebean.services.dnclient.enablereturnstruesudo nixos-rebuild switch --flake .#nixnucsucceeded on nixnucsudo systemctl start dnclient+sudo dnclient enroll -code <CODE>enrolled successfullyip a show defined1confirms the Nebula interface is up with an IPv6 addressNotes
Enrollment is a one-time manual step per host:
sudo dnclient enroll -code <CODE>(get the code from the defined.net dashboard). After that, dnclient handles cert rotation automatically via the defined.net API.🤖 Generated with Claude Code
https://claude.ai/code/session_01UL9di9snFd1GGxF3G9YPsy