os/shared/home/matrix.nix

22 lines
430 B
Nix
Raw Permalink Normal View History

2023-06-15 13:05:24 +02:00
{ pkgs, lib, config, ... }:
let cfg = config.programs.iamb;
in {
options.programs.iamb = {
enable = lib.mkEnableOption "iamb matrix client";
};
config = lib.mkIf (cfg.enable) {
home.packages = [ pkgs.iamb ];
xdg.configFile."iamb/config.json".text = builtins.toJSON {
"profiles"."badat.dev" = {
"url" = "https://matrix.badat.dev";
"user_id" = "@riley:badat.dev";
};
};
};
}