-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhomenet.nix
33 lines (27 loc) · 937 Bytes
/
homenet.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Container for options related to a machine's homenet information. These
# options are collected by the homenet-gateway to generate DHCP information,
# port redirects, etc.
{ lib, ... }:
{
options.my.homenet = with lib; {
enable = mkEnableOption "Homenet configuration";
macAddress = mkOption {
type = types.str;
description = "MAC address of the homenet connected interface.";
};
ipSuffix = mkOption {
type = types.int;
description = "IP address suffix of this machine within the homenet.";
};
ip4TcpPortForward = mkOption {
type = types.listOf types.port;
description = "List of TCP ports being forwarded from the router's external IPv4.";
default = [ ];
};
ip4UdpPortForward = mkOption {
type = types.listOf types.port;
description = "List of UDP ports being forwarded from the router's external IPv4.";
default = [ ];
};
};
}