wireguard: setup VPN

This commit is contained in:
Antoine Martin 2021-02-22 18:59:37 +01:00
parent 1359014331
commit 80942f7eb3
8 changed files with 158 additions and 1 deletions

View file

@ -1,6 +1,7 @@
{ ... }:
{
imports = [
./networking.nix
./nix.nix
./users.nix
];

12
base/networking.nix Normal file
View file

@ -0,0 +1,12 @@
{ 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.
'';
};
}