update syncthing module

This commit is contained in:
Fabian Montero 2025-02-07 16:41:07 -06:00
parent d26ff604e6
commit 8ecb978605
Signed by: fabian
GPG key ID: 1FFAC35E1798174F

View file

@ -21,4 +21,22 @@ with lib; {
};
};
};
# calibre web stuff. make this better someday, this is pure duct-tape
users.groups."calybresync".members = ["syncthing" "calibre-web"];
systemd = {
services."calybreown" = {
script = ''
chgrp -R calybresync /var/lib/calibre-web/calibre_library
chmod -R g+w /var/lib/calibre-web/calibre_library
'';
serviceConfig.Type = "oneshot";
};
timers."calybreown" = {
wantedBy = [
"timers.target"
];
timerConfig.OnCalendar = "*-*-* *:00/30:00";
};
};
}