add telegram
This commit is contained in:
parent
750b0eba47
commit
7a8d88c4b4
2 changed files with 22 additions and 0 deletions
|
@ -4,5 +4,6 @@
|
|||
./whatsapp
|
||||
./zoom
|
||||
./discord
|
||||
./telegram
|
||||
];
|
||||
}
|
||||
|
|
21
modules/desktop/chat/telegram/default.nix
Normal file
21
modules/desktop/chat/telegram/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
outputs,
|
||||
options,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.modules.desktop.chat.telegram;
|
||||
in {
|
||||
options.modules.desktop.chat.telegram = {
|
||||
enable = mkEnableOption false;
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
users.users.sako.packages = with pkgs; [
|
||||
telegram-desktop
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue