taskwarrior: improved setup and calendar
This commit is contained in:
parent
8e45782c6b
commit
35e980a65a
3 changed files with 18 additions and 13 deletions
|
@ -65,8 +65,6 @@ in {
|
|||
lt = "ls -lct --reverse";
|
||||
less = "less -S";
|
||||
top = "htop";
|
||||
todo = "task todo";
|
||||
active = "task active";
|
||||
version = "date '+%Y%m%d%H%M%S'";
|
||||
vclip = "xclip -selection clipboard";
|
||||
df = "df -h";
|
||||
|
|
|
@ -63,8 +63,6 @@ in {
|
|||
lt = "ls -lct --reverse";
|
||||
less = "less -S";
|
||||
top = "htop";
|
||||
todo = "task todo";
|
||||
active = "task active";
|
||||
version = "date '+%Y%m%d%H%M%S'";
|
||||
vclip = "xclip -selection clipboard";
|
||||
df = "df -h";
|
||||
|
|
|
@ -21,6 +21,16 @@ let
|
|||
${pkgs.taskwarrior}/bin/task "$@"
|
||||
'';
|
||||
|
||||
vit = unstable.vit.overrideAttrs (old: rec {
|
||||
name = "vit-${version}";
|
||||
version = "master";
|
||||
src = pkgs.fetchgit {
|
||||
url = "https://github.com/scottkosty/vit.git";
|
||||
rev = "7200949214362139e8073b6ca1a58cc756b2ebd0";
|
||||
sha256 = "1s0rvqn8xjy3qiw9034wfzz2r7mwary70x32fqprz2w2h5r73j2m";
|
||||
};
|
||||
});
|
||||
|
||||
in {
|
||||
|
||||
options.programs.custom.taskwarrior.enable =
|
||||
|
@ -29,22 +39,21 @@ in {
|
|||
config = mkIf cfg.enable {
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
||||
taskwarrior
|
||||
timewarrior
|
||||
tasksh
|
||||
taskNextWeek
|
||||
tsak
|
||||
|
||||
(unstable.vit.overrideAttrs (old: rec {
|
||||
name = "vit-${version}";
|
||||
version = "master";
|
||||
src = pkgs.fetchgit {
|
||||
url = "https://github.com/scottkosty/vit.git";
|
||||
rev = "7200949214362139e8073b6ca1a58cc756b2ebd0";
|
||||
sha256 = "1s0rvqn8xjy3qiw9034wfzz2r7mwary70x32fqprz2w2h5r73j2m";
|
||||
};
|
||||
(pkgs.writers.writeBashBin "calendar" ''
|
||||
${pkgs.taskwarrior}/bin/task calendar
|
||||
${pkgs.taskwarrior}/bin/task calendar_report
|
||||
'')
|
||||
|
||||
}))
|
||||
vit
|
||||
(pkgs.writers.writeBashBin "active" "${vit}/bin/vit active")
|
||||
(pkgs.writers.writeBashBin "todo" "${vit}/bin/vit todo")
|
||||
|
||||
taskwarrior-hooks
|
||||
vdirsyncer
|
||||
|
|
Loading…
Reference in a new issue