diff --git a/config/jawz.nix b/config/jawz.nix index dce094f..76beac3 100644 --- a/config/jawz.nix +++ b/config/jawz.nix @@ -46,6 +46,13 @@ in workstation.id = "4E4KJ6M-MSTNBVF-D7CNHDW-DUTB3VR-SXKZ4NH-ZKAOMF5-V24JECJ-4STSZAA"; galaxy.id = "UAZ5YDV-YUFBXOY-QMS6S6R-WPIIKZI-4OPPW5L-G4OVUPO-YW5KFYY-YASRAAV"; phone.id = "OSOX2VZ-AO2SA3C-BFB6NKF-K6CR6WX-64TDBKW-RRKEKJ4-FKZE5CV-J2RGJAJ"; + wg-friend1 = { + id = "XBIYCD4-EFKS5SK-WFF73CU-P37GXVH-OMWEIA4-6KC5F3L-U5UQWSF-SYNNRQF"; + addresses = [ "tcp://${config.my.ips.wg-friend1}:22000" ]; + introducer = false; + autoAcceptFolders = false; + paused = false; + }; }; folders = let @@ -97,6 +104,12 @@ in "workstation" ]; }; + friend_share = lib.mkIf (hostName == "server") { + path = "~/Pictures/encrypted/friends"; + ignorePerms = false; + type = "sendreceive"; + devices = [ "wg-friend1" ]; + }; }; }; }; diff --git a/modules/modules.nix b/modules/modules.nix index 62cb209..0da8b8d 100644 --- a/modules/modules.nix +++ b/modules/modules.nix @@ -55,6 +55,7 @@ in vps = "51.222.141.104"; wg-vps = "10.77.0.1"; wg-server = "10.77.0.2"; + wg-friend1 = "10.8.0.2"; }; description = "Set of IP's for all my computers."; };