system/modules/home-manager/programs/communication.nix

23 lines
522 B
Nix
Raw Normal View History

2024-04-16 02:51:46 +03:00
{ config, pkgs, lib, ... }:
let cfg = config.local.programs.communication; in
{
options.local.programs.communication = with lib; {
matrix = {
enable = mkEnableOption "nheko. matrix client";
package = mkPackageOption pkgs "nheko" { };
};
tox = {
enable = mkEnableOption "tox";
package = mkPackageOption pkgs "qtox" { };
};
2024-04-16 02:51:46 +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
}