mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 18:11:55 -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;
|
|
};
|
|
}
|