depot/modules/networking/default.nix

18 lines
326 B
Nix
Raw Permalink Normal View History

{ 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;
}
];
};
};
}