aboutsummaryrefslogtreecommitdiff
path: root/users/ryan/modules/taskwarrior-ubersicht/default.nix
blob: 1f16c247a1b22cdd7073762739ea7bd58f6227c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;
        };
    };
}