Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Home Manager module for ActivityWatch #3

Closed
jackdbd opened this issue Dec 17, 2023 · 4 comments
Closed

Home Manager module for ActivityWatch #3

jackdbd opened this issue Dec 17, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@jackdbd
Copy link
Owner

jackdbd commented Dec 17, 2023

Create an Home Manager module that allows to configure ActivityWatch using Nix expressions instead of TOML files.

Where to store ActivityWatch categorization rules? I can export/import them as a JSON, but how to do it automatically.

@jackdbd jackdbd self-assigned this Dec 17, 2023
@jackdbd jackdbd added the enhancement New feature or request label Dec 17, 2023
@jackdbd
Copy link
Owner Author

jackdbd commented Dec 17, 2023

Implemented first version in fd81e50. At the moment all ActivityWatch components (aw-qt, aw server, aw watchers) can be configured only via TOML files.

@jackdbd
Copy link
Owner Author

jackdbd commented Dec 21, 2023

Implemented in #7 .

@jackdbd jackdbd closed this as completed Dec 21, 2023
@rbozan
Copy link

rbozan commented Feb 13, 2024

Hey @jackdbd , I was wondering if it was possible to get this in Home Manager somehow, as I'd also like to use this as a systemd service.

@jackdbd
Copy link
Owner Author

jackdbd commented Feb 14, 2024

I initially thought about opening a PR in the Home Manager repo, but then I discussed about my solution in the NixOS forum and in the ActivityWatch forum and found out that ActivityWatch is meant to be started with the autostart mechanism of the user's desktop environment.

The rationale behind the decision of not including a systemd service in ActivityWatch is explained in this comment by one of ActivityWatch's authors.

So, if you want to use the systemd service I implemented in #7, I think your best bet is just copy-pasting my Home Manager module in your Nix configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants