From 8120b0413198c57eece2e2225ce93b4b921238b7 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 21 Apr 2022 17:40:49 -0700 Subject: modules: add syncthing as a new module --- modules/services/default.nix | 1 + modules/services/syncthing/default.nix | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 modules/services/syncthing/default.nix (limited to 'modules') diff --git a/modules/services/default.nix b/modules/services/default.nix index 693872f..88d8145 100644 --- a/modules/services/default.nix +++ b/modules/services/default.nix @@ -16,6 +16,7 @@ ./rclone ./samba ./ssh-server + ./syncthing ./tailscale ./thermald ./tlp diff --git a/modules/services/syncthing/default.nix b/modules/services/syncthing/default.nix new file mode 100644 index 0000000..3b6f34f --- /dev/null +++ b/modules/services/syncthing/default.nix @@ -0,0 +1,11 @@ +{ config, pkgs, lib, ... }: +let cfg = config.my.services.syncthing; +in { + services.syncthing = { + enable = true; + openDefaultPorts = true; + user = config.users.users.fcuny; + group = "users"; + dataDir = "${config.users.users.fcuny.home}/.syncthing"; + }; +} -- cgit 1.4.1