diff --git a/shared/home/default.nix b/shared/home/default.nix index 6c50e74..5d55f24 100644 --- a/shared/home/default.nix +++ b/shared/home/default.nix @@ -7,6 +7,7 @@ ./git.nix ./mpd.nix ./programs.nix + ./matrix.nix ./theme.nix ./gui ./nix diff --git a/shared/home/matrix.nix b/shared/home/matrix.nix new file mode 100644 index 0000000..a8452d3 --- /dev/null +++ b/shared/home/matrix.nix @@ -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"; + }; + }; + }; + +} diff --git a/system/dev-lt-63/home.nix b/system/dev-lt-63/home.nix index 29d2c88..a61642c 100644 --- a/system/dev-lt-63/home.nix +++ b/system/dev-lt-63/home.nix @@ -9,6 +9,7 @@ programs = { home-manager.enable = false; + iamb.enable = true; }; custom.gui = {