Centralize IPv6 GUA prefix configuration

This commit is contained in:
Vili Sinervä 2025-02-21 12:36:07 +02:00
parent f95617dfa4
commit 89516c5477
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996
4 changed files with 181 additions and 172 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, config, ... }:
{
networking = {
hostName = "lithium";
@ -6,9 +6,9 @@
wg-quick.interfaces = {
wg0 = {
autostart = true;
address = [ "2001:14ba:a090:39ff::3/64" ];
address = [ "${config.custom.gua_pref}ff::3/64" ];
dns = [
"2001:14ba:a090:39ff::1"
"${config.custom.gua_pref}ff::1"
"vsinerva.fi"
];
privateKeyFile = "/root/wireguard-keys/privatekey-home";
@ -32,7 +32,7 @@
};
services.clatd = {
enable = true;
settings.clat-v6-addr = "2001:14ba:a090:39ff::c3";
settings.clat-v6-addr = "${config.custom.gua_pref}ff::c3";
};
systemd.services.clatd.wants = [ "wg-quick-wg0.service" ];