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