diff options
| author | Ryan Schanzenbacher <ryan@rschanz.org> | 2026-07-09 19:54:43 -0400 |
|---|---|---|
| committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2026-07-09 19:54:43 -0400 |
| commit | f67b48b02b0813273d3375cf0d3f3319a0a79dbd (patch) | |
| tree | 94f94bf15e0be52dd1c5e7057673cd542b89a3bb /users/ryan/modules/taskwarrior-ubersicht | |
| parent | 4d12069176a576f90e32a90c805fa9653934011e (diff) | |
Added task warrior widget
Diffstat (limited to 'users/ryan/modules/taskwarrior-ubersicht')
| -rw-r--r-- | users/ryan/modules/taskwarrior-ubersicht/default.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/users/ryan/modules/taskwarrior-ubersicht/default.nix b/users/ryan/modules/taskwarrior-ubersicht/default.nix new file mode 100644 index 0000000..1f16c24 --- /dev/null +++ b/users/ryan/modules/taskwarrior-ubersicht/default.nix | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | { config, lib, pkgs, ... }: | ||
| 2 | |||
| 3 | with lib; | ||
| 4 | |||
| 5 | let | ||
| 6 | cfg = config.ryan.simple-bar; | ||
| 7 | # Fetch the git repo at a specific rev | ||
| 8 | "taskwarrior-ubersicht-upstream" = builtins.fetchGit { | ||
| 9 | url = "https://github.com/nstanger/taskwarrior.widget"; | ||
| 10 | rev = "30428166fc84491eec36d91248df65f95064c97c"; | ||
| 11 | shallow = true; | ||
| 12 | }; | ||
| 13 | in | ||
| 14 | { | ||
| 15 | options.ryan.taskwarrior-widget.enable = mkEnableOption "taskwarrior-widget"; | ||
| 16 | |||
| 17 | config = mkIf cfg.enable { | ||
| 18 | home.file."Library/Application Support/Übersicht/widgets/taskwarrior.widget" = { | ||
| 19 | source = taskwarrior-ubersicht-upstream; | ||
| 20 | recursive = false; | ||
| 21 | }; | ||
| 22 | }; | ||
| 23 | } | ||
