about summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
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
         #+----+