modules: add 'networking.externalInterface' option
This commit is contained in:
parent
ecded82986
commit
9e9ef7b598
|
@ -4,6 +4,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./language.nix
|
./language.nix
|
||||||
|
./networking.nix
|
||||||
./nix.nix
|
./nix.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
./users.nix
|
./users.nix
|
||||||
|
|
13
modules/networking.nix
Normal file
13
modules/networking.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
options.my.networking.externalInterface = with lib; mkOption {
|
||||||
|
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.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue