diff options
Diffstat (limited to 'whisper-dictate/service.nix')
| -rw-r--r-- | whisper-dictate/service.nix | 18 |
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" ]; + }; +} |
