25 lines
712 B
Nix
25 lines
712 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
let cfg = config.local.programs.communication; in
|
|
{
|
|
options.local.programs.communication = with lib; {
|
|
simplex-chat = {
|
|
enable = mkEnableOption "SimplexChat";
|
|
package = mkPackageOption pkgs "simplex-chat-desktop" { };
|
|
};
|
|
matrix = {
|
|
enable = mkEnableOption "nheko. matrix client";
|
|
package = mkPackageOption pkgs "nheko" { };
|
|
};
|
|
tox = {
|
|
enable = mkEnableOption "tox";
|
|
package = mkPackageOption pkgs "qTox" { };
|
|
};
|
|
};
|
|
|
|
config.home.packages =
|
|
lib.optional cfg.simplex-chat.enable cfg.simplex-chat.package
|
|
++ lib.optional cfg.matrix.enable cfg.matrix.package
|
|
++ lib.optional cfg.tox.enable cfg.tox.package;
|
|
}
|