From 6f5c1073017bb56fe1f6528fdcb4a1f1537af09d Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Tue, 13 Aug 2024 02:17:31 +0200 Subject: [PATCH] enable activitywatch --- home/machines/laptop.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/home/machines/laptop.nix b/home/machines/laptop.nix index 8b6fa86..9a2dfb4 100644 --- a/home/machines/laptop.nix +++ b/home/machines/laptop.nix @@ -24,5 +24,25 @@ duskTime = "21:30-22:30"; }; + services.activitywatch = { + enable = true; + watchers = { + aw-watcher-afk = { + package = pkgs.activitywatch; + settings = { + timeout = 300; + poll_time = 2; + }; + }; + aw-watcher-window = { + package = pkgs.activitywatch; + settings = { + poll_time = 1; + # exclude_title = true; + }; + }; + }; + }; + profiles.games.enable = true; }