diff options
Diffstat (limited to 'home/pim/syncthing.nix')
| -rw-r--r-- | home/pim/syncthing.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/home/pim/syncthing.nix b/home/pim/syncthing.nix new file mode 100644 index 0000000..9ed1708 --- /dev/null +++ b/home/pim/syncthing.nix @@ -0,0 +1,18 @@ +{ + config, + lib, + ... +}: +with lib; let + cfg = config.local.syncthing; +in { + options.local.syncthing = { + enable = mkEnableOption "syncthing"; + }; + + config = mkIf cfg.enable { + services.syncthing = { + enable = true; + }; + }; +} |
