{ config, lib, pkgs, ... }: lib.mkIf config.u.has.activitywatch { services.activitywatch = { enable = true; watchers = { aw-watcher-afk.package = pkgs.activitywatch; aw-watcher-window.package = pkgs.activitywatch; }; }; systemd.user.targets.activitywatch = { Unit.Requires = lib.mkForce ["autostart.target"]; Unit.After = lib.mkForce ["autostart.target"]; Install.WantedBy = lib.mkForce ["autostart.target"]; }; home.packages = with pkgs; [ activitywatch python312Packages.aw-client python312Packages.aw-core ]; }