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

View file

@ -2,6 +2,7 @@
features = {
cli = {
direnv.enable = true;
syncthing.enable = true;
tmux-sessionizer.enable = true;
};

View file

@ -4,6 +4,7 @@
features = {
cli = {
direnv.enable = true;
syncthing.enable = true;
tmux-sessionizer.enable = true;
};

View file

@ -4,6 +4,7 @@
features = {
cli = {
direnv.enable = true;
syncthing.enable = true;
};
desktop = {

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