2023-09-11 20:23:04 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2021-11-25 21:43:49 +01:00
|
|
|
with lib;
|
2023-09-11 20:23:04 +02:00
|
|
|
mkIf (elem "emacs::telega" config.machine.pkgs) {
|
|
|
|
programs.emacs.init.usePackage.telegram = {
|
|
|
|
enable = true;
|
|
|
|
defer = true;
|
|
|
|
package = epkgs: [epkgs.telega epkgs.visual-fill-column];
|
|
|
|
command = ["telega"];
|
|
|
|
config = ''
|
|
|
|
(telega-alert-mode 1)
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|