nixos-config/base/networking.nix

19 lines
347 B
Nix
Raw Normal View History

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.
'';
};
}