From f8d26da7c054c0a4c89ab12993e00f74ea9260a1 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 18 Sep 2025 11:42:17 -0400 Subject: add whisper-dictate subservice --- whisper-dictate/service.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 whisper-dictate/service.nix (limited to 'whisper-dictate/service.nix') diff --git a/whisper-dictate/service.nix b/whisper-dictate/service.nix new file mode 100644 index 0000000..f0f394c --- /dev/null +++ b/whisper-dictate/service.nix @@ -0,0 +1,18 @@ +{ pkgs, ... }: + +{ + home.packages = [ pkgs.whisper-dictate ]; + + systemd.user.services.whisper-dictate = { + Unit = { + Description = "Whisper dictation daemon"; + After = [ "graphical-session.target" ]; + }; + Service = { + ExecStart = "${pkgs.whisper-dictate}/bin/whisper-dictate-daemon"; + Restart = "on-failure"; + Environment = "DISPLAY=:0"; + }; + Install.WantedBy = [ "default.target" ]; + }; +} -- cgit v1.2.3