diff --git a/hosts/porter/configuration.nix b/hosts/porter/configuration.nix index 4e6acea..cc54a07 100644 --- a/hosts/porter/configuration.nix +++ b/hosts/porter/configuration.nix @@ -81,7 +81,7 @@ ipv6 { table ospf6; export filter { - krt_prefsrc=fd00:152:152:102::1; + krt_prefsrc=${ (lib.head config.networking.interfaces.lo.ipv6.addresses).address }; accept; }; import none; @@ -92,7 +92,7 @@ ipv4 { table ospf4; export filter { - krt_prefsrc=10.152.102.1; + krt_prefsrc=${ (lib.head config.networking.interfaces.lo.ipv4.addresses).address }; accept; }; import none;