about summary refs log tree commit diff stats
path: root/modules/by-name/ta/taskchampion-sync/module.nix
blob: 84721fe404593c7fb56f7d609ae68fc749a94ed9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  config,
  lib,
  ...
}: let
  cfg = config.vhack.taskchampion-sync;
in {
  options.vhack.taskchampion-sync = {
    enable = lib.mkEnableOption "taskchampion-sync";
  };

  config = lib.mkIf cfg.enable {
    services.taskchampion-sync-server = {
      enable = true;
      openFirewall = true;
    };
  };
}