modules: add 'networking.externalInterface' option
This commit is contained in:
parent
ecded82986
commit
9e9ef7b598
|
@ -4,6 +4,7 @@
|
|||
{
|
||||
imports = [
|
||||
./language.nix
|
||||
./networking.nix
|
||||
./nix.nix
|
||||
./packages.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