users/ryan/modules/taskwarrior-ubersicht/default.nix
f67b48b02b0813273d3375cf0d3f3319a0a79dbd
· 646 B · 23 lines
raw
| 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 | } |