[NixOS] More syncthing

This commit is contained in:
2023-08-03 22:01:56 -06:00
parent 37a415952d
commit 6f88c0ae28
2 changed files with 15 additions and 2 deletions

View File

@@ -1,11 +1,18 @@
{ pkgs, ... }:
{
system.activationScripts.syncthingPermissions = {
text = ''
chown -R syncthing:syncthing /var/lib/syncthing
chmod -R 2770 /var/lib/syncthing
mkdir -p /var/lib/syncthing/sync
'';
};
services.syncthing = {
enable = true;
settings = {
folders = {
sync = {
path = "~/";
path = "~/sync";
};
};
devices = {