Add matrix client
This commit is contained in:
parent
b8e3b06570
commit
1c9287cc44
3 changed files with 23 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
./git.nix
|
||||
./mpd.nix
|
||||
./programs.nix
|
||||
./matrix.nix
|
||||
./theme.nix
|
||||
./gui
|
||||
./nix
|
||||
|
|
21
shared/home/matrix.nix
Normal file
21
shared/home/matrix.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
programs = {
|
||||
home-manager.enable = false;
|
||||
iamb.enable = true;
|
||||
};
|
||||
|
||||
custom.gui = {
|
||||
|
|
Loading…
Reference in a new issue