system/modules/home-manager/programs/communication.nix

19 lines
619 B
Nix
Raw Permalink Normal View History

2024-04-16 02:51:46 +03:00
{ config, pkgs, lib, ... }:
let cfg = config.local.programs.communication; in
{
options.local.programs.communication = with lib; {
simplex-chat.enable = mkEnableOption "SimplexChat";
telegram.enable = mkEnableOption "tdesktop. telegram client";
matrix.enable = mkEnableOption "nheko. matrix client";
skype.enable = mkEnableOption "skype";
};
config.home.packages = with pkgs.unstable;
lib.optional cfg.simplex-chat.enable simplex-chat-desktop
++ lib.optional cfg.telegram.enable tdesktop
++ lib.optional cfg.matrix.enable nheko
++ lib.optional cfg.skype.enable skypeforlinux;
}