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
|
peers = { # TODO
|
||||||
stelphone = {
|
stelphone = {
|
||||||
localIp = "142";
|
localIp = "142";
|
||||||
publicKey = "6ZwilfrS1J/dMYRnwIMcQ3cW0KtJdLRj5VnSOjwOpn8=";
|
publicKey = "UnS5BtlKKTXfNaSsw2PY7Gbd5aLGiJVlCUY7bHosLio=";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
prefixes = {
|
prefixes = {
|
||||||
ipv4 = [ ]; # TODO
|
ipv4 = [ "192.168.244" ];
|
||||||
ipv6 = {
|
ipv6 = {
|
||||||
ula = [ ]; # TODO
|
ula = [ ]; # TODO
|
||||||
gua = [ ];
|
gua = [ ];
|
||||||
|
|||||||
@ -40,7 +40,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# enable wireguard
|
# enable wireguard
|
||||||
wireguard.enable = false;
|
wireguard.enable = true;
|
||||||
|
|
||||||
|
|
||||||
# user setup
|
# user setup
|
||||||
@ -77,6 +77,12 @@
|
|||||||
interface = "ens3";
|
interface = "ens3";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nat = {
|
||||||
|
enable = true;
|
||||||
|
externalInterface = "ens3";
|
||||||
|
internalInterfaces = [ "wg-stelnet" ];
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
system.stateVersion = "22.05";
|
system.stateVersion = "22.05";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,6 +8,7 @@ with lib; {
|
|||||||
nextcloud.enable = mkEnableOption "Set up nextcloud";
|
nextcloud.enable = mkEnableOption "Set up nextcloud";
|
||||||
smailserver.enable = mkEnableOption "Set up simple mail server";
|
smailserver.enable = mkEnableOption "Set up simple mail server";
|
||||||
unbound.enable = mkEnableOption "Set unbound dns up";
|
unbound.enable = mkEnableOption "Set unbound dns up";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user