modules: add 'networking.externalInterface' option

This commit is contained in:
Bruno BELANYI 2021-02-18 00:08:35 +00:00
parent ecded82986
commit 9e9ef7b598
2 changed files with 14 additions and 0 deletions

View file

@ -4,6 +4,7 @@
{
imports = [
./language.nix
./networking.nix
./nix.nix
./packages.nix
./users.nix

13
modules/networking.nix Normal file
View 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.
'';
};
}