From e07da52bd5d8b333f500378862e7988a114b0529 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Fri, 4 Aug 2017 11:48:34 +0200 Subject: [PATCH] Set up Wireguard private key --- .gitignore | 1 + systems/laptop.nix | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3e18ebf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +private diff --git a/systems/laptop.nix b/systems/laptop.nix index d97ddc5..f28867e 100644 --- a/systems/laptop.nix +++ b/systems/laptop.nix @@ -60,20 +60,20 @@ 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; - + services.xserver.synaptics = { enable = true; };