aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Schanzenbacher <ryan@rschanz.org>2026-07-09 19:54:43 -0400
committerRyan Schanzenbacher <ryan@rschanz.org>2026-07-09 19:54:43 -0400
commitf67b48b02b0813273d3375cf0d3f3319a0a79dbd (patch)
tree94f94bf15e0be52dd1c5e7057673cd542b89a3bb
parent4d12069176a576f90e32a90c805fa9653934011e (diff)
Added task warrior widget
-rw-r--r--users/ryan/home.nix2
-rw-r--r--users/ryan/modules/taskwarrior-ubersicht/default.nix23
-rw-r--r--users/ryan/modules/ubersicht/default.nix20
3 files changed, 45 insertions, 0 deletions
diff --git a/users/ryan/home.nix b/users/ryan/home.nix
index ffbab67..f1c1b32 100644
--- a/users/ryan/home.nix
+++ b/users/ryan/home.nix
@@ -16,6 +16,8 @@
16 # My own modules 16 # My own modules
17 ryan.neovim.enable = true; 17 ryan.neovim.enable = true;
18 ryan.simple-bar.enable = pkgs.stdenv.isDarwin; 18 ryan.simple-bar.enable = pkgs.stdenv.isDarwin;
19 ryan.taskwarrior-widget.enable = pkgs.stdenv.isDarwin;
20 ryan.ubersicht.enable = pkgs.stdenv.isDarwin;
19 21
20 programs.starship = { 22 programs.starship = {
21 enable = true; 23 enable = true;
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
3with lib;
4
5let
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 };
13in
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}
diff --git a/users/ryan/modules/ubersicht/default.nix b/users/ryan/modules/ubersicht/default.nix
new file mode 100644
index 0000000..fb514cb
--- /dev/null
+++ b/users/ryan/modules/ubersicht/default.nix
@@ -0,0 +1,20 @@
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5let
6 cfg = config.ryan.ubersicht;
7in
8{
9 options.ryan.ubersicht.enable = mkEnableOption "ubersicht";
10
11 config = mkIf cfg.enable {
12 launchd.agents.ubersicht = {
13 enable = true;
14 config = {
15 ProgramArguments = [ "/usr/bin/open" "-a" "Übersicht" ];
16 RunAtLoad = true;
17 };
18 };
19 };
20}