Jump to content

Taskwarrior

From Official NixOS Wiki

Taskwarrior is an open-source, cross platform time and task management tool, used to keep track of and handle tasks. It uses a command-line interface, there are also graphical user interface wrappers (nixpkgs: vit) and a tool for reviews (nixpkgks: tasksh) available.

Installation

Taskwarrior can be installed as package from nixpkgs:

  • Taskwarrior (Version 2.6.2): taskwarrior
  • Taskwarrior (Version 3.X): taskwarrior3

Configuration

There are no configuration options in NixOS.

Sync Server

Version 2 of Taskwarrior

see Taskserver

Version 3 of Taskwarrior

use taskchampion

see [1]

Manage sync credentials with sops-nix and home-manager

sops.secrets."taskwarrior_credentials" = { };
programs.taskwarrior = {
  enable = true;
  package = pkgs.taskwarrior3;
  extraConfig = ''
    include ${config.sops.secrets.taskwarrior_credentials.path}
  '';
};

and in your sops-nix secrets file add:

taskwarrior_credentials: |
    sync.server.url=https://taskchampion.example.com/
    sync.server.client_id=a2c1fa14-c43a-4a07-b5bf-cbeb01b1239b
    sync.encryption_secret=veryverysecret