diff options
author | Profpatsch <mail@profpatsch.de> | 2022-02-28 15:08:47 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2022-02-28 15:49:28 +0100 |
commit | 84dc8b101b2b1cf6a7c922b0e73fd94a6d39f8e5 (patch) | |
tree | a451bdbad51eabdf3b37067755a323336659f953 | |
parent | 45c896ac0c50af779f2268838b567cb6e17b204d (diff) |
machines/profpatch: add tagtime service
tagtime was added to nixpkgs in https://github.com/NixOS/nixpkgs/pull/154027
-rw-r--r-- | machines/profpatsch/shiki.nix | 18 |
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 = { |