From 1c9287cc44974d8da2633bc048a7ae6467c090e8 Mon Sep 17 00:00:00 2001 From: Riley Apeldoorn Date: Thu, 15 Jun 2023 13:05:24 +0200 Subject: [PATCH] Add matrix client --- shared/home/default.nix | 1 + shared/home/matrix.nix | 21 +++++++++++++++++++++ system/dev-lt-63/home.nix | 1 + 3 files changed, 23 insertions(+) create mode 100644 shared/home/matrix.nix 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 = {