summaryrefslogtreecommitdiff
path: root/whisper-dictate/service.nix
diff options
context:
space:
mode:
authorBen Sima <ben@bensima.com>2025-09-18 11:42:17 -0400
committerBen Sima <ben@bensima.com>2025-09-18 11:42:17 -0400
commitf8d26da7c054c0a4c89ab12993e00f74ea9260a1 (patch)
tree3d73580d38a1296c512433b32fa43ada0dfa6d10 /whisper-dictate/service.nix
parent1c6de10ac4f9808e3a480ed7b7b11577d13ad005 (diff)
add whisper-dictate subserviceHEADmaster
Diffstat (limited to 'whisper-dictate/service.nix')
-rw-r--r--whisper-dictate/service.nix18
1 files changed, 18 insertions, 0 deletions
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" ];
+ };
+}