chore: init

This commit is contained in:
Nick 2025-10-01 19:51:55 -05:00
commit 1b2c1ea359
891 changed files with 37053 additions and 0 deletions

View file

@ -0,0 +1,62 @@
{
flake,
lib,
pkgs,
...
}:
let
matchHelper = trigger: replace: {
trigger = trigger;
replace = replace;
};
configPath = ./config;
configs = {
url = { inherit flake matchHelper; };
logic = { inherit matchHelper; };
debate = { inherit matchHelper; };
characters = { inherit matchHelper; };
academic = { inherit matchHelper; };
numbers = { inherit matchHelper; };
email = { inherit flake matchHelper; };
};
baseMatches = {
matches = lib.concatMap (name: import (configPath + "/${name}.nix") configs.${name}) (
builtins.attrNames configs
);
};
in
{
services.espanso = {
enable = true;
configs = {
default = {
pre_paste_delay = 0;
show_notifications = false;
};
};
package = pkgs.espanso-wayland;
matches = {
base = baseMatches;
global_vars = {
global_vars = [
{
name = "currentdate";
type = "date";
params = {
format = "%d/%m/%Y";
};
}
{
name = "currenttime";
type = "date";
params = {
format = "%R";
};
}
];
};
};
};
}