|
|
@ -140,13 +140,12 @@ in {
|
|
|
|
|
|
|
|
|
|
|
|
networking.wireguard = {
|
|
|
|
networking.wireguard = {
|
|
|
|
wg0 = {
|
|
|
|
wg0 = {
|
|
|
|
/*ips = [ "192.168.20.4/24" ];*/
|
|
|
|
ips = [ "192.168.3.1/24" ];
|
|
|
|
privateKey = (import ../private/credentials.nix).wireguard.privateKey;
|
|
|
|
privateKey = (import ../private/credentials.nix).wireguard.privateKey;
|
|
|
|
/*peers = [
|
|
|
|
peers = [{
|
|
|
|
{ allowedIPs = [ "192.168.20.1/32" ];
|
|
|
|
allowedIPs = [ "192.168.3.2/32" ];
|
|
|
|
publicKey = "2LAxq8w89vdCqa+Jdtk4xsaJ0OcbU/jv71mzm/K0pXE=";
|
|
|
|
publicKey = "2LAxq8w89vdCqa+Jdtk4xsaJ0OcbU/jv71mzm/K0pXE=";
|
|
|
|
endpoint = "demo.wireguard.io:12913"; }
|
|
|
|
}];
|
|
|
|
];*/
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|