about summary refs log tree commit diff stats
path: root/modules/by-name/ti/timewarrior/module.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-04-04 16:44:46 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-04-04 16:44:46 +0200
commit277141bbe257ca8dcf9b2f91141e7874b96b8698 (patch)
tree65215ae414ad7ef53749790f57572534cb60c43d /modules/by-name/ti/timewarrior/module.nix
parentrefactor(modules/legacy/pkgs): Remove rarely used packages (diff)
downloadnixos-config-277141bbe257ca8dcf9b2f91141e7874b96b8698.zip
fix(modules/timewarrior): Use the correct attribute path for the taskwarrior config
Diffstat (limited to '')
-rw-r--r--modules/by-name/ti/timewarrior/module.nix26
1 files changed, 13 insertions, 13 deletions
diff --git a/modules/by-name/ti/timewarrior/module.nix b/modules/by-name/ti/timewarrior/module.nix
index e4087e69..d6b4dc32 100644
--- a/modules/by-name/ti/timewarrior/module.nix
+++ b/modules/by-name/ti/timewarrior/module.nix
@@ -56,24 +56,24 @@ in {
     enable = lib.mkEnableOption "timewarrior";
   };
   config = lib.mkIf cfg.enable {
+    soispha.programs.taskwarrior = {
+      hooks = {
+        track-timewarrior = {
+          mode = "on-modify";
+          executable = track_timewarrior;
+        };
+        track-total-active-time = {
+          mode = "on-modify";
+          executable = track_total_active_time;
+        };
+      };
+    };
+
     home-manager.users.soispha = {
       home.packages = [
         pkgs.timewarrior
       ];
 
-      soispha.programs.taskwarrior = {
-        hooks = {
-          track-timewarrior = {
-            mode = "on-modify";
-            executable = track_timewarrior;
-          };
-          track-total-active-time = {
-            mode = "on-modify";
-            executable = track_total_active_time;
-          };
-        };
-      };
-
       xdg.configFile."timewarrior/timewarrior.cfg".text = ''
         # source: https://github.com/arcticicestudio/igloo
         #+----+