Set up Wireguard private key

master
Sven Slootweg 7 years ago
parent 34023f0bf4
commit e07da52bd5

1
.gitignore vendored

@ -0,0 +1 @@
private

@ -60,17 +60,17 @@ in {
load-module module-combine-sink sink_name=all
'';
/*networking.wireguard = {
networking.wireguard = {
wg0 = {
ips = [ "192.168.20.4/24" ];
privateKey = "yAnz5TF+lXXJte14tji3zlMNq+hd2rYUIgJBgB3fBmk=";
peers = [
/*ips = [ "192.168.20.4/24" ];*/
privateKey = (import ../private/credentials.nix).wireguard.privateKey;
/*peers = [
{ allowedIPs = [ "192.168.20.1/32" ];
publicKey = "xTIBA5rboUvnH4htodjb6e697QjLERt1NAB4mZqp8Dg=";
endpoint = "demo.wireguard.io:12913"; }
];
];*/
};
};
};*/
nix.useSandbox = true;

Loading…
Cancel
Save