diff --git a/hosts/storage-2/configuration.nix b/hosts/storage-2/configuration.nix index f2c1ded..dd16b5e 100644 --- a/hosts/storage-2/configuration.nix +++ b/hosts/storage-2/configuration.nix @@ -9,6 +9,7 @@ ./mixcloud.nix ./share.nix ./storage.nix + ./syncthing.nix ]; boot.loader.grub.enable = true; diff --git a/hosts/storage-2/syncthing.nix b/hosts/storage-2/syncthing.nix new file mode 100644 index 0000000..ecb8ab3 --- /dev/null +++ b/hosts/storage-2/syncthing.nix @@ -0,0 +1,21 @@ +{ ... }: + +{ + services.syncthing = { + enable = true; + devices = { + ceasium = { + id = "3JVJ2KS-C44JKLL-LFIMCVJ-VUQK2VB-WKJNOGB-4AIJYJM-MINXEKG-T5FHQQE"; + }; + }; + folders = { + mixcloud = { + path = "/data/mixcloud"; + type = "sendonly"; + devices = [ + "ceasium" + ]; + }; + }; + }; +}