8 cfg = config.services.espanso;
12 maintainers = with lib.maintainers; [
20 enable = lib.mkEnableOption "Espanso";
21 package = lib.mkPackageOption pkgs "espanso" {
22 example = "pkgs.espanso-wayland";
27 config = lib.mkIf cfg.enable {
28 systemd.user.services.espanso = {
29 description = "Espanso daemon";
31 ExecStart = "${lib.getExe cfg.package} daemon";
32 Restart = "on-failure";
34 wantedBy = [ "default.target" ];
37 environment.systemPackages = [ cfg.package ];