marleyos/modules/home/services/syncthing/default.nix

27 lines
468 B
Nix
Raw Normal View History

2024-11-16 21:29:25 -08:00
{
lib,
config,
pkgs,
...
}: let
cfg = config.marleyos.services.syncthing;
in {
options.marleyos.services.syncthing.enable = lib.mkEnableOption "syncthing";
2024-11-16 21:29:25 -08:00
config = lib.mkIf cfg.enable {
2024-11-16 21:29:25 -08:00
home.packages = [
config.services.syncthing.tray.package
];
services.syncthing = {
enable = true;
tray = {
enable = true;
command = "syncthingtray";
package = pkgs.syncthingtray-minimal;
};
};
};
}