Skip to content

timewarrior: init #7182

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Prince213
Copy link
Contributor

Description

Checklist

  • Change is backwards compatible.

  • Code formatted with nix fmt or
    nix-shell -p treefmt nixfmt-rfc-style keep-sorted --run treefmt.

  • Code tested through nix-shell --pure tests -A run.all
    or nix build --reference-lock-file flake.lock ./tests#test-all using Flakes.

  • Test cases updated/added. See example.

  • Commit messages are formatted like

    {component}: {description}
    
    {long description}
    

    See CONTRIBUTING for more information and recent commit messages for examples.

  • If this PR adds a new module

    • Added myself as module maintainer. See example.

Maintainer CC

@Prince213 Prince213 force-pushed the push-orymwxvklmyu branch 2 times, most recently from 9b3aa30 to cd245bd Compare June 1, 2025 10:00
Copy link

@cardboardcpu cardboardcpu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was considering doing it myself but you beat me to it. Thanks. :)

options.programs.timewarrior = {
enable = lib.mkEnableOption "Timewarrior";
package = lib.mkPackageOption pkgs "timewarrior" { };
taskwarrior.enable = lib.mkOption {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: maybe naming the option something like taskwarriorHook would be oportune?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do have a few names in mind like this one (as it's similar to aerc.enable) and enableTaskwarriorIntegration but I'm not really sure yet.

@Prince213
Copy link
Contributor Author

@cardboardcpu Can you help fix & run the tests? I'm not sure why it fails that way.

$ nix-build --pure --option allow-import-from-derivation false tests -A build.timewarrior
Expected symlink home-files/.local/share/task/hooks/on-modify.timewarrior to exist but it was not found.

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

Successfully merging this pull request may close these issues.

2 participants