birdsong: fully modularise existing wireguard config

This commit is contained in:
Katherina Walshe-Grey 2024-07-25 07:52:43 +01:00
parent 5b79e6826b
commit e90afae7ac
6 changed files with 197 additions and 52 deletions

View file

@ -6,10 +6,6 @@
birdsong.peer = {
enable = true;
privateKeyFile = config.age.secrets.wireguard-peer-tohru.path;
listenPort = 51821;
persistentKeepalive = 23;
};
# TODO: get this from a list of peers, keyed on hostname
networking.wireguard.interfaces.birdsong.ips = [ "10.127.1.3/24" "fd70:81ca:0f8f:1::3/64" ];
}