users/ryan/modules/taskwarrior-ubersicht/default.nix

1a71e94eb8ca1585201263cf654611ef6849d359 · 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 }