summaryrefslogtreecommitdiff
path: root/whisper-dictate/service.nix
blob: f0f394c9ff7bf4128b26e8f01a477f763edd8cc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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" ];
  };
}