machines/syncthing: make sure folder exist

This commit is contained in:
Felix Buehler 2023-09-02 18:27:51 +02:00
parent 11f864458f
commit 5476b67957
2 changed files with 19 additions and 0 deletions

View file

@ -3,6 +3,16 @@
sops.secrets."syncthing/key" = { };
sops.secrets."syncthing/cert" = { };
# make sure folders exist writable
systemd.tmpfiles.rules = [
"d /srv/data/ 0755 syncthing syncthing"
"d /srv/data/computer 0755 syncthing syncthing"
"d /srv/data/phone 0755 syncthing syncthing"
"d /srv/data/music 0755 syncthing syncthing"
"d /srv/data/photos 0755 syncthing syncthing"
"d /srv/data/tmp/aria2 0755 syncthing syncthing"
];
services.syncthing = {
enable = true;
openDefaultPorts = true;