syncthing

This commit is contained in:
Reid 2024-07-08 20:36:24 -07:00
parent b6b5b33a09
commit 96028bb33c
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
2 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.modules.software.system.syncthing;
in {
options.modules.software.system.syncthing = {
enable = mkEnableOption "Enable Syncthing, a file synchronization server";
};
config = mkIf cfg.enable {
# declare sync folders & devices here
# edit: turns out you can't with hm??
hm.services.syncthing = {
enable = true;
# shit broken as hell ngl
tray = {
enable = true;
package = pkgs.syncthingtray-minimal;
command = "syncthingtray --wait";
};
};
};
}