network options working for basic functionality
This commit is contained in:
parent
e4cdc2cae5
commit
392375b046
9 changed files with 348 additions and 221 deletions
16
nixos/network/default.nix
Normal file
16
nixos/network/default.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
args@{ config, pkgs, lib, vmixLib, ... }:
|
||||
with lib;
|
||||
{
|
||||
options.vmix.global.net.wan.ipv4.range = lib.mkOption {
|
||||
type = types.strMatching vmixLib.network.regex.cidr4;
|
||||
default = "172.27.72.0/24"; # enough to create 64x /30 networks for veth pairs used for wan interfaces
|
||||
};
|
||||
|
||||
options.vmix.networks = lib.mkOption {
|
||||
type = types.attrsOf
|
||||
(types.submodule (import ./options.nix args));
|
||||
default = { };
|
||||
};
|
||||
|
||||
imports = [ (import ./config.nix args) ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue