From 84dc8b101b2b1cf6a7c922b0e73fd94a6d39f8e5 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Mon, 28 Feb 2022 15:08:47 +0100 Subject: machines/profpatch: add tagtime service tagtime was added to nixpkgs in https://github.com/NixOS/nixpkgs/pull/154027 --- machines/profpatsch/shiki.nix | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'machines/profpatsch') 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 = { -- cgit 1.4.1