14 lines
420 B
Nix
14 lines
420 B
Nix
_: {
|
|
autocmds = rec {
|
|
## [String] | String -> String -> [String] | String -> String -> String -> AttrSet
|
|
mk = event: group': pattern: callback: desc: let
|
|
group = "marleyos_${group'}";
|
|
in {
|
|
inherit event group pattern callback desc;
|
|
};
|
|
|
|
## [String] | String -> String -> String -> String -> AttrSet
|
|
mk' = event: group: callback: desc:
|
|
mk event group null callback desc;
|
|
};
|
|
}
|