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 + ]; + }; +}