diff options
author | Franck Cuny <franck@fcuny.net> | 2022-04-21 17:40:49 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-04-21 17:40:49 -0700 |
commit | 8120b0413198c57eece2e2225ce93b4b921238b7 (patch) | |
tree | 35a76d3ebd52be8b4117595eac304853eaf23eb5 /modules/services/syncthing | |
parent | mail: fix tags for notmuch (diff) | |
download | world-8120b0413198c57eece2e2225ce93b4b921238b7.tar.gz |
modules: add syncthing as a new module
Diffstat (limited to 'modules/services/syncthing')
-rw-r--r-- | modules/services/syncthing/default.nix | 11 |
1 files changed, 11 insertions, 0 deletions
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"; + }; +} |