diff options
-rw-r--r-- | eligos/configuration.nix | 1 | ||||
-rw-r--r-- | phenex/configuration.nix | 1 | ||||
-rw-r--r-- | services/syncthing.nix | 21 |
3 files changed, 23 insertions, 0 deletions
diff --git a/eligos/configuration.nix b/eligos/configuration.nix index ee6f70b..0142b76 100644 --- a/eligos/configuration.nix +++ b/eligos/configuration.nix @@ -20,6 +20,7 @@ ../services/dbus.nix ../services/haveged.nix ../services/sshd.nix + ../services/syncthing.nix ../system/ca.nix ../system/documentation.nix ../system/fonts.nix diff --git a/phenex/configuration.nix b/phenex/configuration.nix index e6926d7..8be7ab1 100644 --- a/phenex/configuration.nix +++ b/phenex/configuration.nix @@ -20,6 +20,7 @@ ../services/dbus.nix ../services/haveged.nix ../services/printing.nix + ../services/syncthing.nix ../system/bluetooth.nix ../system/ca.nix ../system/documentation.nix diff --git a/services/syncthing.nix b/services/syncthing.nix new file mode 100644 index 0000000..6cd653a --- /dev/null +++ b/services/syncthing.nix @@ -0,0 +1,21 @@ +{ config, ... }: +{ + services.syncthing = { + all_proxy = null; + enable = true; + dataDir = /home/kb; + configDir = /home/kb/.config/syncthing; + group = "users"; + user = "kb"; + systemService = true; + declarative.folders = { + "sync-root" = { + label = "sync"; + id = "sync-root"; + path = "/home/kb/sync"; + ignorePerms = false; + devices = [ ]; + }; + }; + }; +} |