1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00

Setup wireguard

This commit is contained in:
Stefan Ellmauthaler 2022-07-31 16:55:34 +02:00
parent adccfd987f
commit 036cdfdcbb
Signed by: ellmau
GPG Key ID: C804A9C1B7AF8256
3 changed files with 10 additions and 3 deletions

View File

@ -16,12 +16,12 @@ with lib; {
peers = { # TODO
stelphone = {
localIp = "142";
publicKey = "6ZwilfrS1J/dMYRnwIMcQ3cW0KtJdLRj5VnSOjwOpn8=";
publicKey = "UnS5BtlKKTXfNaSsw2PY7Gbd5aLGiJVlCUY7bHosLio=";
};
};
prefixes = {
ipv4 = [ ]; # TODO
ipv4 = [ "192.168.244" ];
ipv6 = {
ula = [ ]; # TODO
gua = [ ];

View File

@ -40,7 +40,7 @@
};
# enable wireguard
wireguard.enable = false;
wireguard.enable = true;
# user setup
@ -77,6 +77,12 @@
interface = "ens3";
};
nat = {
enable = true;
externalInterface = "ens3";
internalInterfaces = [ "wg-stelnet" ];
};
};
system.stateVersion = "22.05";
}

View File

@ -8,6 +8,7 @@ with lib; {
nextcloud.enable = mkEnableOption "Set up nextcloud";
smailserver.enable = mkEnableOption "Set up simple mail server";
unbound.enable = mkEnableOption "Set unbound dns up";
};
imports = [