From 7d3cf5212bb7dc055ece96974642b192e1adfb68 Mon Sep 17 00:00:00 2001 From: Gregory Hellings Date: Wed, 6 Apr 2022 14:10:41 -0500 Subject: [PATCH] Added syncthing --- base.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/base.nix b/base.nix index 6628221..e8feb21 100644 --- a/base.nix +++ b/base.nix @@ -17,6 +17,27 @@ # Enable the OpenSSH daemon for remote control services.openssh.enable = true; + services.syncthing = { + enable = true; + user = "greg"; + group = "users"; + dataDir = "/home/greg/sync"; + devices = { + nas = { + addresses = [ + "tcp://nas.thehellings.lan:51820" + ]; + id = "74JUTZG-77EPGO3-FEYCL2P-CHDWP5G-6EXWZVB-XTAH6O5-TUXCVY2-QNRHSQ4"; + }; + dns = { + addresses = [ + "tcp://dns.thehellings.lan:51820" + ]; + id = "I242AI5-XBNN272-RA75Y35-BIROR5O-TIAUFGM-HC77CRU-TW3O74O-5VDKHQF"; + }; + }; + }; + # Base packages that need to be in all my hosts environment.systemPackages = with pkgs; [ vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.