Skip to content

Commit b81ce6d

Browse files
committed
develop: set neochat as default matrix client
1 parent 5f780c6 commit b81ce6d

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

modules/home/hyprland/applications/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ in
6666
./librewolf
6767
./mpv
6868
./ncmpcpp
69+
./neochat
6970
./networkmanager_dmenu
7071
./newsboat
7172
./passwordmanager
@@ -127,7 +128,7 @@ in
127128
};
128129

129130
matrix-client = mkAppAttrs {
130-
default = "element-desktop";
131+
default = "neochat";
131132
bind = [ "$mod SHIFT, e, exec, ${matrix-client}" ];
132133
};
133134

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
config,
3+
lib,
4+
pkgs,
5+
...
6+
}:
7+
8+
let
9+
cfg = config.wayland.windowManager.hyprland;
10+
app = cfg.applications.matrix-client.default;
11+
12+
inherit (lib) mkIf;
13+
in
14+
{
15+
config = mkIf (cfg.enable && app == "neochat") {
16+
home.packages = [ pkgs.kdePackages.neochat ];
17+
};
18+
}

0 commit comments

Comments
 (0)