mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-29 16:49:18 -05:00
16 lines
253 B
Nix
16 lines
253 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
options = {
|
|
userServices.syncthing.enable =
|
|
lib.mkEnableOption "Enables syncthing as user.";
|
|
};
|
|
|
|
config = lib.mkIf config.userServices.syncthing.enable {
|
|
services.syncthing.enable = true;
|
|
};
|
|
}
|