File tree Expand file tree Collapse file tree 4 files changed +36
-2
lines changed Expand file tree Collapse file tree 4 files changed +36
-2
lines changed Original file line number Diff line number Diff line change 114
114
}
115
115
] ;
116
116
} ;
117
+ delafthi = {
118
+ name = "Thierry Delafontaine" ;
119
+
120
+ matrix = "@delafthi:matrix.org" ;
121
+ github = "delafthi" ;
122
+ githubId = 50531499 ;
123
+ keys = [ { fingerprint = "24A0 D053 B044 E46D E0BD F61F F284 24F9 874E 6696" ; } ] ;
124
+ } ;
117
125
Dines97 = {
118
126
name = "Denis Kaynar" ;
119
127
Original file line number Diff line number Diff line change 52
52
lib . hm . maintainers . liyangau
53
53
maintainers . n8henrie
54
54
maintainers . phanirithvij
55
+ maintainers . delafthi
55
56
] ;
56
57
options = {
57
58
services . espanso = {
155
156
for a description of available options.
156
157
'' ;
157
158
} ;
159
+
160
+ plugins = mkOption {
161
+ type = with types ; listOf package ;
162
+ default = [ ] ;
163
+ example = literalExpression "[ pkgs.espansoPlugins.actually-all-emojis-spaces ]" ;
164
+ description = ''
165
+ List of Espanso plugins to install. To get a list of supported plugins run:
166
+ {command}`nix-env -f '<nixpkgs>' -qaP -A espansoPlugins`.
167
+ '' ;
168
+ } ;
158
169
} ;
159
170
} ;
160
171
191
202
source = yaml . generate "${ name } .yml" value ;
192
203
} ;
193
204
} ) cfg . matches ;
205
+ plugins = lib . listToAttrs (
206
+ lib . map ( plugin : {
207
+ name = "espanso/match/packages/${ plugin . pname } " ;
208
+ value = {
209
+ source = plugin ;
210
+ } ;
211
+ } ) cfg . plugins
212
+ ) ;
194
213
in
195
- configFiles // matchesFiles ;
214
+ configFiles // matchesFiles // plugins ;
196
215
197
216
systemd . user . services . espanso = {
198
217
Unit = {
Original file line number Diff line number Diff line change
1
+ { pkgs , ... } :
1
2
{
2
3
services . espanso = {
3
4
enable = true ;
42
43
] ;
43
44
} ;
44
45
} ;
46
+ plugins = [
47
+ pkgs . espansoPlugins . dummy-package
48
+ ] ;
45
49
} ;
46
50
47
51
nmt . script = ''
Original file line number Diff line number Diff line change 1
1
espansoExtraArgs :
2
- { config , ... } :
2
+ { config , pkgs , ... } :
3
3
4
4
{
5
5
services . espanso = {
@@ -45,6 +45,9 @@ espansoExtraArgs:
45
45
] ;
46
46
} ;
47
47
} ;
48
+ plugins = [
49
+ pkgs . espansoPlugins . dummy-package
50
+ ] ;
48
51
} // espansoExtraArgs ;
49
52
50
53
nmt . script = ''
You can’t perform that action at this time.
0 commit comments