mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
Setup wireguard
This commit is contained in:
parent
adccfd987f
commit
036cdfdcbb
@ -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 = [ ];
|
||||
|
||||
@ -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";
|
||||
}
|
||||
|
||||
@ -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 = [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user