diff --git a/hosts/dingbox/configuration.nix b/hosts/dingbox/configuration.nix index 95bef32..51e2bdf 100644 --- a/hosts/dingbox/configuration.nix +++ b/hosts/dingbox/configuration.nix @@ -8,6 +8,7 @@ imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix + ./syncthing ../common ]; diff --git a/hosts/dingbox/syncthing/default.nix b/hosts/dingbox/syncthing/default.nix new file mode 100644 index 0000000..d0f9e10 --- /dev/null +++ b/hosts/dingbox/syncthing/default.nix @@ -0,0 +1,28 @@ +{ config, lib, pkgs, ...}: + +{ + services.syncthing = { + enable = true; + user = "daniel"; + openDefaultPorts = true; + dataDir = config.users.users.daniel.home; + devices = { + "phone" = { + id = "MZRKZDE-JOMQA4V-IGKELNR-UCZAZNG-URDOHUA-DHDGZYW-A4NVYWT-ZJLECQN"; + }; + }; + folders = { + "camera" = { + devices = ["phone"]; + id = "pixel_6_fayt-photos"; + path = "/home/daniel/Pictures/Camera"; + type = "receiveonly"; + }; + "movies" = { + devices = ["phone"]; + id = "movie_repo"; + path = "/home/daniel/Sync/movies"; + }; + }; + }; +}