feat(syncthing): init msyds

This commit is contained in:
2025-09-08 10:50:34 -06:00
parent 1092abc002
commit 430b55075f
2 changed files with 37 additions and 4 deletions

View File

@@ -0,0 +1,36 @@
{ config, lib, pkgs, ... }:
let cfg = config.sydnix.users.msyds.syncthing;
in {
options.sydnix.users.msyds.syncthing = {
enable = lib.mkEnableOption "Syncthing";
};
config = lib.mkIf cfg.enable {
sydnix.syncthing = {
enable = true;
includeDevices = [
"sydpc"
"deertopia"
];
directories = {
"org" = {
path = "~/org";
devices = [
"deertopia"
"sydpc"
];
ignorePerms = true;
};
"Music" = {
path = "~/Music";
devices = [
"deertopia"
"sydpc"
];
ignorePerms = true;
};
};
};
};
}