2024-04-16 02:51:46 +03:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
|
|
|
|
let cfg = config.local.programs.communication; in
|
|
|
|
{
|
|
|
|
options.local.programs.communication = with lib; {
|
2024-09-05 18:45:09 +03:00
|
|
|
matrix = {
|
|
|
|
enable = mkEnableOption "nheko. matrix client";
|
|
|
|
package = mkPackageOption pkgs "nheko" { };
|
|
|
|
};
|
|
|
|
tox = {
|
|
|
|
enable = mkEnableOption "tox";
|
2024-09-05 21:36:53 +03:00
|
|
|
package = mkPackageOption pkgs "qtox" { };
|
2024-09-05 18:45:09 +03:00
|
|
|
};
|
2024-04-16 02:51:46 +03:00
|
|
|
};
|
|
|
|
|
2024-09-06 03:12:54 +03:00
|
|
|
config = {
|
|
|
|
home.packages =
|
|
|
|
lib.optional cfg.matrix.enable cfg.matrix.package
|
|
|
|
++ lib.optional cfg.tox.enable cfg.tox.package;
|
|
|
|
};
|
2024-04-16 02:51:46 +03:00
|
|
|
}
|