Centralize IPv6 GUA prefix configuration
This commit is contained in:
parent
f95617dfa4
commit
89516c5477
4 changed files with 181 additions and 172 deletions
|
@ -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" ];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue