adding syncthing

This commit is contained in:
cnst
2024-09-26 17:02:28 +02:00
parent c0190757e1
commit 3542de91c6
5 changed files with 63 additions and 40 deletions

View File

@@ -0,0 +1,18 @@
{
config,
lib,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.modules.userd.syncthing;
in {
options = {
modules.userd.syncthing.enable = mkEnableOption "Enables syncthing";
};
config = mkIf cfg.enable {
services.syncthing = {
enable = true;
tray.enable = true;
};
};
}