From f67b48b02b0813273d3375cf0d3f3319a0a79dbd Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Thu, 9 Jul 2026 19:54:43 -0400 Subject: Added task warrior widget --- .../ryan/modules/taskwarrior-ubersicht/default.nix | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 users/ryan/modules/taskwarrior-ubersicht/default.nix (limited to 'users/ryan/modules/taskwarrior-ubersicht/default.nix') 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 @@ +{ config, lib, pkgs, ... }: + +with lib; + +let + cfg = config.ryan.simple-bar; + # Fetch the git repo at a specific rev + "taskwarrior-ubersicht-upstream" = builtins.fetchGit { + url = "https://github.com/nstanger/taskwarrior.widget"; + rev = "30428166fc84491eec36d91248df65f95064c97c"; + shallow = true; + }; +in +{ + options.ryan.taskwarrior-widget.enable = mkEnableOption "taskwarrior-widget"; + + config = mkIf cfg.enable { + home.file."Library/Application Support/Übersicht/widgets/taskwarrior.widget" = { + source = taskwarrior-ubersicht-upstream; + recursive = false; + }; + }; +} -- cgit v1.3