17 lines
326 B
Nix
17 lines
326 B
Nix
{ config, lib, ... }:
|
|
let
|
|
inherit (config.reflection) interfaces;
|
|
in
|
|
{
|
|
networking.interfaces = lib.mkIf (interfaces ? vstub) {
|
|
${interfaces.vstub.link} = {
|
|
virtual = true;
|
|
ipv4.addresses = [
|
|
{
|
|
address = interfaces.vstub.addr;
|
|
prefixLength = 32;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|