summaryrefslogtreecommitdiff
path: root/nixos/hosts/bed
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/hosts/bed')
-rw-r--r--nixos/hosts/bed/components/wireguard.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/nixos/hosts/bed/components/wireguard.nix b/nixos/hosts/bed/components/wireguard.nix
new file mode 100644
index 0000000..b4f64ec
--- /dev/null
+++ b/nixos/hosts/bed/components/wireguard.nix
@@ -0,0 +1,15 @@
+{
+ networking.wireguard.interfaces.wg0 = {
+ ips = [ "10.0.0.3/24" ];
+ privateKeyFile = "/var/lib/wireguard/privatekey";
+
+ peers = [
+ {
+ publicKey = " ";
+ endpoint = "5.231.118.254:51820";
+ allowedIPs = [ "10.0.0.0/24" ];
+ persistentKeepalive = 25;
+ }
+ ];
+ };
+}