add espanso module for david in Tytonidae and Akun
This commit is contained in:
parent
7966a78c62
commit
2033cbe3a6
6 changed files with 49 additions and 0 deletions
|
|
@ -35,6 +35,7 @@
|
|||
atuin.enable = true;
|
||||
obs.enable = true;
|
||||
chromium.enable = true;
|
||||
espanso.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@
|
|||
thunderbird.enable = true;
|
||||
obs.enable = true;
|
||||
chromium.enable = true;
|
||||
espanso.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -25,5 +25,6 @@
|
|||
./helix
|
||||
./waybar.nix
|
||||
./jujutsu.nix
|
||||
./espanso.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
44
home/modules/programs/espanso.nix
Normal file
44
home/modules/programs/espanso.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue