Make syncthing configurable per host

This commit is contained in:
Oliver Davies 2025-01-07 20:55:58 +00:00
parent 5f8bb22a90
commit 7e3743d470
4 changed files with 17 additions and 1 deletions
nix/modules/home-manager/features/cli

View file

@ -1 +1,14 @@
{ services.syncthing.enable = true; }
{ config, lib, ... }:
with lib;
let
cfg = config.features.cli.syncthing;
in
{
options.features.cli.syncthing.enable = mkEnableOption "Enable syncthing";
config = mkIf cfg.enable {
services.syncthing.enable = true;
};
}