Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

badge.router

Declared in BadgeOS/modules/sg2k/router.nix.

badge.router.enable

Whether to enable the badge as a router for whatever is on its wired ports.

Type: boolean

Default:

false

Example:

true

Declared by:

badge.router.interfaces.ethernet

The Ethernet interface. For tests and other boards.

Type: string

Default:

"eth0"

Declared by:

badge.router.interfaces.usb

The USB network interface. For tests and other boards.

Type: string

Default:

"usb0"

Declared by:

badge.router.interfaces.wifi

The WiFi interface. For tests and other boards.

Type: string

Default:

"wlan0"

Declared by:

badge.router.upstream

The uplink: the port the badge takes its default route from and NATs out of. The other wired ports are bridged as the badge’s own network, lan0.

Type: one of “wifi”, “ethernet”, “usb”

Default:

"wifi"

Declared by: