2021-02-22 18:59:37 +01:00
|
|
|
{ lib, ... }:
|
2022-01-11 16:08:21 +01:00
|
|
|
let
|
|
|
|
inherit (lib)
|
|
|
|
mkOption
|
|
|
|
types
|
|
|
|
;
|
|
|
|
in
|
2021-02-22 18:59:37 +01:00
|
|
|
{
|
2022-01-11 16:08:21 +01:00
|
|
|
options.my.networking.externalInterface = mkOption {
|
2021-02-22 18:59:37 +01:00
|
|
|
type = types.nullOr types.str;
|
|
|
|
default = null;
|
|
|
|
example = "eth0";
|
|
|
|
description = ''
|
|
|
|
Name of the network interface that egresses to the internet. Used for
|
|
|
|
e.g. NATing internal networks.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|