From 188ccb71f19c7139e1da94c0fee5d18ab476f4d0 Mon Sep 17 00:00:00 2001 From: coolneng Date: Thu, 24 Sep 2020 16:13:02 +0200 Subject: [PATCH] Add prosorinos to VPN and Syncthing --- modules/datasync.nix | 12 ++++++++---- modules/networking.nix | 7 ++++++- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/modules/datasync.nix b/modules/datasync.nix index 31bc51e..53b661d 100644 --- a/modules/datasync.nix +++ b/modules/datasync.nix @@ -16,34 +16,38 @@ id = "UNZIABR-GEQ4AWT-XKFADLW-HW3SQ3Y-BEYZ56A-W530DLS-DXGQWKK-2QQ4RQ6"; }; + prosorinos = { + id = + "3VO3M5I-FXJXPFZ-HSSBQIJ-4ZK4ALK-O3MI2CL-TS7BNBC-Z5OLGE2-MO7K3QK "; + }; }; folders = { Documents = { id = "wusdj-bfjkr"; type = "receiveonly"; path = "/vault/syncthing/Documents"; - devices = [ "roamer" "panacea" ]; + devices = [ "roamer" "panacea" "prosorinos" ]; }; Notes = { id = "kafhz-bfmzm"; type = "receiveonly"; path = "/vault/syncthing/Notes"; - devices = [ "roamer" "panacea" ]; + devices = [ "roamer" "panacea" "prosorinos" ]; }; Music = { id = "2aqt7-vpprc"; type = "receiveonly"; path = "/vault/syncthing/Music"; - devices = [ "roamer" "panacea" ]; + devices = [ "roamer" "panacea" "prosorinos" ]; }; Photos = { id = "mjibc-ustcg"; type = "receiveonly"; path = "/vault/syncthing/Photos"; - devices = [ "roamer" "panacea" ]; + devices = [ "roamer" "panacea" "prosorinos" ]; }; Projects = { diff --git a/modules/networking.nix b/modules/networking.nix index f49df8f..d919e26 100644 --- a/modules/networking.nix +++ b/modules/networking.nix @@ -1,6 +1,6 @@ { config, pkgs, lib, ... }: -let password = builtins.readFile /run/keys/ddclient; +let password = builtins.readFile /var/lib/ddclient/token; in { @@ -73,6 +73,11 @@ in { publicKey = "gS5VIUFL74kTs3zxVNT/ijWyOjeAFLEqWynD0Pefh1o="; allowedIPs = [ "10.8.0.3/32" ]; } + # Prosorinos + { + publicKey = "ipr+95jPZaCwEQybLsN5njxENMrPFbUUKf8CTNvGsDA="; + allowedIPs = [ "10.8.0.4/32" ]; + } ]; }; };