Files
cnix/home/modules/userd/syncthing/default.nix
2024-09-26 17:02:28 +02:00

19 lines
323 B
Nix

{
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;
};
};
}