Refactor gui module

This commit is contained in:
ulic-youthlic 2025-07-01 23:17:40 +08:00
parent edfe0e5bf9
commit e65183b4a4
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
36 changed files with 236 additions and 309 deletions

View file

@ -0,0 +1,42 @@
{
config,
lib,
pkgs,
...
}: let
cfg = config.david.programs.espanso;
in {
options = {
david.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";
};
}
];
}
];
};
};
};
};
}