From fb0a6fba5e3aff788de1fda5d67f602d6df72b7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20H=C3=A9mono?= Date: Sun, 9 Feb 2025 14:48:27 +0100 Subject: [PATCH] Add syncthing service --- hosts/gwiad/configuration.nix | 1 + hosts/gwiad/syncthing.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 hosts/gwiad/syncthing.nix diff --git a/hosts/gwiad/configuration.nix b/hosts/gwiad/configuration.nix index 934436f..eb60136 100644 --- a/hosts/gwiad/configuration.nix +++ b/hosts/gwiad/configuration.nix @@ -10,6 +10,7 @@ ./hardware-configuration.nix # Services ./btrbk.nix + ./syncthing.nix ]; # Boot configuration diff --git a/hosts/gwiad/syncthing.nix b/hosts/gwiad/syncthing.nix new file mode 100644 index 0000000..cca51b8 --- /dev/null +++ b/hosts/gwiad/syncthing.nix @@ -0,0 +1,14 @@ +{ config, lib, pkgs, ... }: + +{ + services.syncthing = { + enable = true; + user = "jhemono"; + group = "users"; + dataDir = "/home/jhemono/Downloads"; + configDir = "/home/jhemono/.config/syncthing"; + overrideDevices = false; + overrideFolders = false; + openDefaultPorts = true; + }; +}