diff --git a/hosts/goopnet-interface/default.nix b/hosts/goopnet-interface/default.nix index fabf562..0a51c99 100755 --- a/hosts/goopnet-interface/default.nix +++ b/hosts/goopnet-interface/default.nix @@ -66,6 +66,7 @@ system.eza.enable = true; system.wezterm.enable = true; system.fish.enable = true; + system.syncthing.enable = true; # editors editors.micro.enable = true; editors.vscode.enable = true; diff --git a/modules/software/system/syncthing.nix b/modules/software/system/syncthing.nix new file mode 100644 index 0000000..3a05ab6 --- /dev/null +++ b/modules/software/system/syncthing.nix @@ -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"; + }; + }; + }; +} \ No newline at end of file