2024-04-11 20:15:47 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}:
|
2023-10-22 17:12:42 +02:00
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
communication.discord.enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = !config.isProfessional;
|
|
|
|
example = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
communication.slack.enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = config.isProfessional;
|
|
|
|
example = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
communication.weechat.enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = true;
|
|
|
|
example = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
communication.matrix.enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = !config.isProfessional;
|
|
|
|
example = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config.home.packages = with pkgs; [
|
2024-04-11 20:15:47 +02:00
|
|
|
(mkIf config.communication.discord.enable (discord.override { nss = nss_latest; }))
|
2023-10-22 17:12:42 +02:00
|
|
|
(mkIf config.communication.slack.enable slack)
|
|
|
|
(mkIf config.communication.weechat.enable weechat)
|
|
|
|
(mkIf config.communication.matrix.enable element)
|
|
|
|
];
|
|
|
|
}
|