better syncthing setup

This commit is contained in:
Henri Dohmen 2026-01-13 20:55:39 +01:00
parent 9f9a4d0377
commit 2c7f498d42
Signed by: hd
GPG key ID: AB79213B044674AE
8 changed files with 56 additions and 35 deletions

29
mod/desktop/syncthing.nix Normal file
View file

@ -0,0 +1,29 @@
{ lib, var, ... }:
{
services.syncthing = {
enable = lib.mkDefault true;
user = "hd";
settings.folders = {
sync = {
path = "/home/hd/Sync";
type = "sendreceive";
};
supernote-note = rec {
id = "supernote-note";
path = "/home/hd/Sync/Dokumente/Supernote/Notizen";
type = "sendreceive";
devices = var.syncthing.device-names.desktops ++ [ "supernote" ];
versioning = {
type = "simple";
params.keep = "10";
};
};
};
};
systemd.tmpfiles.rules = [
"d /home/hd/Sync 0755 hd users - -"
"L+ /home/hd/Documents - - - - /home/hd/Sync/Dokumente"
"L+ /home/hd/Desktop - - - - /home/hd/Sync/Desktop"
];
}