mirror of
https://github.com/tboerger/nixos-config
synced 2024-11-23 03:32:08 +01:00
38 lines
612 B
Nix
38 lines
612 B
Nix
{ pkgs, lib, config, options, ... }:
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.profile.programs.messages;
|
|
|
|
in
|
|
{
|
|
options = {
|
|
profile = {
|
|
programs = {
|
|
messages = {
|
|
enable = mkEnableOption "Messages";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
home = {
|
|
packages = with pkgs; [
|
|
discord
|
|
element-desktop
|
|
ferdium
|
|
mattermost-desktop
|
|
revolt-desktop
|
|
rocketchat-desktop
|
|
signal-desktop
|
|
skypeforlinux
|
|
slack
|
|
teams-for-linux
|
|
telegram-desktop
|
|
whatsapp-for-linux
|
|
];
|
|
};
|
|
};
|
|
}
|