2024-07-16 15:06:08 +03:00
|
|
|
{ config, lib, ... }:
|
2023-10-25 00:38:11 +03:00
|
|
|
let
|
2024-07-16 15:06:08 +03:00
|
|
|
inherit (config.reflection) interfaces;
|
2023-10-25 00:38:11 +03:00
|
|
|
in
|
|
|
|
{
|
|
|
|
networking.interfaces = lib.mkIf (interfaces ? vstub) {
|
|
|
|
${interfaces.vstub.link} = {
|
|
|
|
virtual = true;
|
|
|
|
ipv4.addresses = [
|
|
|
|
{
|
|
|
|
address = interfaces.vstub.addr;
|
|
|
|
prefixLength = 32;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|