diff --git a/modules/default.nix b/modules/default.nix index 41f6110..8af74a9 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -4,6 +4,7 @@ { imports = [ ./language.nix + ./networking.nix ./nix.nix ./packages.nix ./users.nix diff --git a/modules/networking.nix b/modules/networking.nix new file mode 100644 index 0000000..28ba108 --- /dev/null +++ b/modules/networking.nix @@ -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. + ''; + }; +}