nixos-config/modules/workstation/home-manager/communication.nix

42 lines
904 B
Nix
Raw Normal View History

2024-04-11 20:15:47 +02:00
{
lib,
pkgs,
config,
...
}:
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; }))
(mkIf config.communication.slack.enable slack)
(mkIf config.communication.weechat.enable weechat)
(mkIf config.communication.matrix.enable element)
];
}