nixcfg/homeManagerModules/userServices/syncthing/default.nix

12 lines
246 B
Nix
Raw Normal View History

2024-03-28 19:52:15 -04:00
{ pkgs, lib, config, ... }: {
options = {
userServices.syncthing.enable =
lib.mkEnableOption "Enables syncthing as user.";
};
config = lib.mkIf config.userServices.syncthing.enable {
services.syncthing.enable = true;
};
}