Add matrix client

This commit is contained in:
Riley Apeldoorn 2023-06-15 13:05:24 +02:00 committed by Riley Apeldoorn
parent b8e3b06570
commit 1c9287cc44
3 changed files with 23 additions and 0 deletions

View file

@ -7,6 +7,7 @@
./git.nix
./mpd.nix
./programs.nix
./matrix.nix
./theme.nix
./gui
./nix

21
shared/home/matrix.nix Normal file
View file

@ -0,0 +1,21 @@
{ 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";
};
};
};
}

View file

@ -9,6 +9,7 @@
programs = {
home-manager.enable = false;
iamb.enable = true;
};
custom.gui = {