add espanso module for david in Tytonidae and Akun

This commit is contained in:
ulic-youthlic 2025-04-03 02:00:12 +08:00
parent 7966a78c62
commit 2033cbe3a6
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
6 changed files with 49 additions and 0 deletions

View file

@ -35,6 +35,7 @@
atuin.enable = true;
obs.enable = true;
chromium.enable = true;
espanso.enable = true;
};
};

View file

@ -40,6 +40,7 @@
thunderbird.enable = true;
obs.enable = true;
chromium.enable = true;
espanso.enable = true;
};
};

View file

@ -25,5 +25,6 @@
./helix
./waybar.nix
./jujutsu.nix
./espanso.nix
];
}

View file

@ -0,0 +1,44 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.youthlic.programs.espanso;
in
{
options = {
youthlic.programs.espanso = {
enable = lib.mkEnableOption "espanso";
};
};
config = lib.mkIf cfg.enable {
services.espanso = {
enable = true;
package = pkgs.espanso-wayland;
configs = {
default = { };
};
matches = {
base = {
matches = [
{
trigger = ":date";
replace = "{{date}}";
vars = [
{
name = "date";
type = "date";
params = {
format = "%Y-%m-%d";
};
}
];
}
];
};
};
};
};
}