From 85fd36d2e8cc77439055a88eb0f90e5fe48306a4 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Wed, 18 Dec 2019 16:15:58 +1300 Subject: [PATCH] syncthing: share some folders via samba --- configs/porani/syncthing.nix | 8 ++++++++ configs/workhorse/syncthing.nix | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/configs/porani/syncthing.nix b/configs/porani/syncthing.nix index 9a9f3f3..88c55a8 100644 --- a/configs/porani/syncthing.nix +++ b/configs/porani/syncthing.nix @@ -1,5 +1,13 @@ { config, pkgs, lib, ... }: { + custom.samba-share = { + enable = true; + folders = { + movies = config.test.services.syncthing.declarative.folders.movies.path; + series = config.test.services.syncthing.declarative.folders.series.path; + music = config.test.services.syncthing.declarative.folders.music-library.path; + }; + }; test.services.syncthing = { enable = true; diff --git a/configs/workhorse/syncthing.nix b/configs/workhorse/syncthing.nix index 6154e78..3ffde70 100644 --- a/configs/workhorse/syncthing.nix +++ b/configs/workhorse/syncthing.nix @@ -1,6 +1,15 @@ { config, pkgs, lib, ... }: { + custom.samba-share = { + enable = true; + folders = { + movies = config.test.services.syncthing.declarative.folders.movies.path; + series = config.test.services.syncthing.declarative.folders.series.path; + music = config.test.services.syncthing.declarative.folders.music-library.path; + }; + }; + test.services.syncthing = { enable = true; openDefaultPorts = false;