From 2957b240f875f8392d24c34aa8b578b8c63ce6c7 Mon Sep 17 00:00:00 2001 From: Ming Di Leom <2809763-curben@users.noreply.gitlab.com> Date: Mon, 27 Dec 2021 04:26:34 +0000 Subject: [PATCH] post(cloudflared-nixos): custom package --- source/_posts/cloudflare-argo-nixos.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/_posts/cloudflare-argo-nixos.md b/source/_posts/cloudflare-argo-nixos.md index 499e5a2..5698c26 100644 --- a/source/_posts/cloudflare-argo-nixos.md +++ b/source/_posts/cloudflare-argo-nixos.md @@ -162,6 +162,10 @@ mdleom.com:4430 www.mdleom.com:4430 { Restart/reload Caddy for the changed config to take effect. +## Custom package (optional) + +If your NixOS instance is IPv6-only, you may want to use a {% post_link custom-package-nixos-module 'custom package' %}. [`pkgs.cloudflared`](https://search.nixos.org/packages?channel=21.11&from=0&size=50&sort=relevance&type=packages&query=cloudflared) is installed by compiling the source from the [GitHub repo](https://github.com/cloudflare/cloudflared), instead of using a cached binary from Nix repo. cloudflared's license restricts the distribution of binary, hence the need of source compilation. However, GitHub doesn't support IPv6 yet, so we need to clone its repo to other Git repo that supports IPv6 and then download it from there. + ## Start cloudflared ``` nix