{ config, lib, pkgs, globalInputs, system, ... }: with lib; let cfg = config.home.roles.communication; in { options.home.roles.communication = { enable = mkEnableOption "Enable communication and messaging applications"; }; config = mkIf cfg.enable { home.packages = [ # Communication apps pkgs.element-desktop #pkgs.fluffychat #marked insecure as of nixos 25.05 pkgs.nextcloud-talk-desktop # For logging back into google chat globalInputs.google-cookie-retrieval.packages.${system}.default ]; }; }