Skip to content

Commit

Permalink
Setup ActivityWatch
Browse files Browse the repository at this point in the history
  • Loading branch information
alapshin committed Sep 1, 2024
1 parent 42eb81e commit 590a803
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
9 changes: 9 additions & 0 deletions users/alapshin/home/firefox.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
};

policies = {
# Needed for ActivityWatch Addon
"3rdparty" = {
"Extensions" = {
"{ef87d84c-2127-493f-b952-5b4e744245bc}" = {
"consentOfflineDataCollection" = true;
};
};
};
"Cookies" = {
"Locked" = true;
"Behavior" = "reject-tracker-and-partition-foreign";
Expand Down Expand Up @@ -67,6 +75,7 @@
(with pkgs.firefox-addons; [ linguist-translator ])
++ (with pkgs.nur.repos.rycee.firefox-addons; [
awesome-rss
aw-watcher-web
omnivore
metamask
sponsorblock
Expand Down
1 change: 1 addition & 0 deletions users/alapshin/home/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
# ./plasma.nix
./neovim.nix
./texlive.nix
./timetracking.nix

./theming.nix
./packages.nix
Expand Down
19 changes: 19 additions & 0 deletions users/alapshin/home/timetracking.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{ pkgs, ... }:

{
services.activitywatch = {
enable = true;
package = pkgs.aw-server-rust;
watchers = {
awatcher = {
package = pkgs.awatcher;
};
aw-watcher-afk = {
package = pkgs.aw-watcher-afk;
};
aw-watcher-window = {
package = pkgs.aw-watcher-window;
};
};
};
}

0 comments on commit 590a803

Please sign in to comment.