about summary refs log tree commit diff
path: root/machines/profpatsch
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2022-02-28 15:08:47 +0100
committerProfpatsch <mail@profpatsch.de>2022-02-28 15:49:28 +0100
commit84dc8b101b2b1cf6a7c922b0e73fd94a6d39f8e5 (patch)
treea451bdbad51eabdf3b37067755a323336659f953 /machines/profpatsch
parent45c896ac0c50af779f2268838b567cb6e17b204d (diff)
machines/profpatch: add tagtime service
tagtime was added to nixpkgs in
https://github.com/NixOS/nixpkgs/pull/154027
Diffstat (limited to 'machines/profpatsch')
-rw-r--r--machines/profpatsch/shiki.nix18
1 files changed, 17 insertions, 1 deletions
diff --git a/machines/profpatsch/shiki.nix b/machines/profpatsch/shiki.nix
index 6e011c08..55ce297e 100644
--- a/machines/profpatsch/shiki.nix
+++ b/machines/profpatsch/shiki.nix
@@ -578,8 +578,24 @@ in {
             AccuracySec="15m";
           };
         };
-      }
 
+        services.tagtime = {
+          description = "tagtime daemon";
+          wantedBy = [ "default.target" ];
+          serviceConfig = {
+            Restart = "on-failure";
+            ExecStart = "${pkgs.tagtime}/bin/tagtimed";
+            Environment = [
+              "DISPLAY=:0"
+              ''
+                EDITOR=${pkgs.writers.writeDash "emacs-frame" ''
+                  ${pkgs.emacs}/bin/emacsclient -c "$@"
+                ''}
+              ''
+            ];
+          };
+        };
+      }
 
       ({
       #   services.pyrnotify-ssh-connection = {