Skip to content

Instantly share code, notes, and snippets.

View alexhaydock's full-sized avatar
🌎
IPv6-only

Alex Haydock alexhaydock

🌎
IPv6-only
View GitHub Profile
@alexhaydock
alexhaydock / nm-clat.nix
Last active February 15, 2026 19:34
NixOS module to overlay latest NetworkManager with CLAT
# /etc/nixos/nm-clat.nix
{ config, pkgs, ... }:
{
# Use NetworkManager
networking.networkmanager.enable = true;
# Horrible hack to create a dispatcher to enable CLAT every time a connection
# comes up since networkmanager.settings doesn't seem to accept settings that
# only exist in the upstream dev branch
#!/usr/bin/env bash
# Names of latest versions of each package
export VERSION_PCRE=pcre-8.38
export VERSION_ZLIB=zlib-1.2.8
export VERSION_LIBRESSL=libressl-2.3.4
export VERSION_NGINX=nginx-1.10.0
# URLs to the source directories
export SOURCE_LIBRESSL=http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/