61 lines
1.3 KiB
Nix
61 lines
1.3 KiB
Nix
{ lib, config, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
options = {
|
|
router = {
|
|
enableDesktop = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
description = "Enable desktop environment";
|
|
};
|
|
|
|
wanMAC = mkOption {
|
|
type = types.str;
|
|
default = "bc:24:11:4f:c9:c4";
|
|
description = "WAN interface MAC address";
|
|
};
|
|
|
|
lanMAC = mkOption {
|
|
type = types.str;
|
|
default = "bc:24:11:83:d8:de";
|
|
description = "LAN interface MAC address";
|
|
};
|
|
|
|
wanLL = mkOption {
|
|
type = types.str;
|
|
default = "fe80::be24:11ff:fe4f:c9c4";
|
|
description = "WAN IPv6 link-local address";
|
|
};
|
|
|
|
lanLL = mkOption {
|
|
type = types.str;
|
|
default = "fe80::be24:11ff:fe83:d8de";
|
|
description = "LAN IPv6 link-local address";
|
|
};
|
|
|
|
defaultToken = mkOption {
|
|
type = types.int;
|
|
default = 1;
|
|
description = "Default token for interface addressing";
|
|
};
|
|
|
|
wanAddr4 = mkOption {
|
|
type = types.str;
|
|
description = "WAN IPv4 address";
|
|
};
|
|
|
|
wanGw4 = mkOption {
|
|
type = types.str;
|
|
description = "WAN IPv4 gateway";
|
|
};
|
|
|
|
pdFromWan = mkOption {
|
|
type = types.str;
|
|
description = "IPv6 prefix delegation from WAN";
|
|
};
|
|
};
|
|
};
|
|
}
|