mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 11:13:30 +00:00
d98322834b
mostly no rendering changes except in buildkite, which used markdown where docbook was expected without marking up its markdown.
25 lines
578 B
Nix
25 lines
578 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
let cfg = config.services.espanso;
|
|
in {
|
|
meta = { maintainers = with lib.maintainers; [ numkem ]; };
|
|
|
|
options = {
|
|
services.espanso = { enable = options.mkEnableOption (lib.mdDoc "Espanso"); };
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
systemd.user.services.espanso = {
|
|
description = "Espanso daemon";
|
|
serviceConfig = {
|
|
ExecStart = "${pkgs.espanso}/bin/espanso daemon";
|
|
Restart = "on-failure";
|
|
};
|
|
wantedBy = [ "default.target" ];
|
|
};
|
|
|
|
environment.systemPackages = [ pkgs.espanso ];
|
|
};
|
|
}
|