MyNixOS website logo
option

services.activitywatch.watchers

Watchers to be included with the service alongside with their configuration.

If a configuration is set, a file will be generated in $XDG_CONFIG_HOME/activitywatch/$WATCHER_NAME/$WATCHER_SETTINGS_FILENAME.

The watchers are run with the service manager and the settings format of the configuration is only assumed to be in TOML. Furthermore, it assumes the watcher program is using the official client libraries which has functions to store it in the appropriate location.
Declarations
Type
attribute set of (submodule)
Default
{ }
Example
{
  aw-watcher-afk = {
    package = pkgs.activitywatch;
    settings = {
      timeout = 300;
      poll_time = 2;
    };
  };

  aw-watcher-windows = {
    package = pkgs.activitywatch;
    settings = {
      poll_time = 1;
      exclude_title = true;
    };
  };

  my-custom-watcher = {
    package = pkgs.my-custom-watcher;
    executable = "mcw";
    settings = {
      hello = "there";
      enable_greetings = true;
      poll_time = 5;
    };
    settingsFilename = "config.toml";
  };
}