{ config, lib, pkgs, ... }: { # ZFS automatic snapshots services.zfs.autoSnapshot = { enable = true; frequent = 4; hourly = 24; daily = 7; weekly = 4; monthly = 12; }; # Syncthing configuration services.syncthing = { enable = true; user = "coolneng"; dataDir = "/home/coolneng"; declarative = { devices = { zion = { id = "5IBMM46-O7QQEAD-ELP7CXE-CK7V7YK-LVF2T3K-KQVVGP5-LYMBFM7-L4DAOAG"; addresses = [ "tcp://192.168.13.2:22000" ]; }; }; folders = { Documents = { id = "wusdj-bfjkr"; path = "/home/coolneng/Documents"; devices = [ "zion" ]; versioning = { type = "simple"; params.keep = "5"; }; }; Notes = { id = "kafhz-bfmzm"; path = "/home/coolneng/Notes"; devices = [ "zion" ]; versioning = { type = "simple"; params.keep = "5"; }; }; Music = { id = "2aqt7-vpprc"; path = "/home/coolneng/Music"; devices = [ "zion" ]; }; Photos = { id = "mjibc-ustcg"; path = "/home/coolneng/Photos"; devices = [ "zion" ]; }; Projects = { id = "cjhmu-avy9v"; path = "/home/coolneng/Projects"; devices = [ "zion" ]; }; Phone = { id = "m2007j20cg_288y-photos"; type = "receiveonly"; path = "/home/coolneng/Photos/Phone"; devices = [ "zion" ]; }; Files = { id = "tsk52-u6rbk"; path = "/home/coolneng/Files"; devices = [ "zion" ]; }; }; }; }; }