From 7a8d88c4b495b5c30bad6ce1343637e919fe3394 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Mon, 29 Jan 2024 19:20:55 +0400 Subject: [PATCH] add telegram --- modules/desktop/chat/default.nix | 1 + modules/desktop/chat/telegram/default.nix | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 modules/desktop/chat/telegram/default.nix diff --git a/modules/desktop/chat/default.nix b/modules/desktop/chat/default.nix index cbc4eacf..5b760273 100644 --- a/modules/desktop/chat/default.nix +++ b/modules/desktop/chat/default.nix @@ -4,5 +4,6 @@ ./whatsapp ./zoom ./discord + ./telegram ]; } diff --git a/modules/desktop/chat/telegram/default.nix b/modules/desktop/chat/telegram/default.nix new file mode 100644 index 00000000..0bfba288 --- /dev/null +++ b/modules/desktop/chat/telegram/default.nix @@ -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 + ]; + }; +}