File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ { pkgs , ... } :
2+
3+ {
4+ home . packages = [
5+ pkgs . iamb
6+ ] ;
7+
8+ programs . bash . shellAliases = {
9+ matrix = "iamb" ;
10+ } ;
11+
12+ # Declarative iamb configuration (~/.config/iamb/config.toml)
13+ xdg . configFile . "iamb/config.toml" . text = ''
14+ [profiles."matrix.org"]
15+ user_id = "@brantes:matrix.org"
16+
17+ [settings]
18+ render_markdown = true
19+
20+ [settings.image_preview]
21+ protocol = { type = "sixel" }
22+
23+ [settings.notifications]
24+ enabled = true
25+ via = "bell"
26+
27+ [settings.message_format]
28+ markdown = true
29+ html = true
30+
31+ [logging]
32+ level = "info"
33+ '' ;
34+ }
Original file line number Diff line number Diff line change 1+ { pkgs , ... } :
2+
3+ {
4+ home . packages = [
5+ ( pkgs . weechat . override {
6+ configure = { availablePlugins , ... } : {
7+ plugins = with availablePlugins ; [
8+ ( python . withPackages ( ps : with ps ; [
9+ pyopenssl
10+ matrix-client
11+ future
12+ dbus-python
13+ ] ) )
14+ lua
15+ perl
16+ ] ;
17+ scripts = with pkgs . weechatScripts ; [
18+ weechat-matrix
19+ ] ;
20+ } ;
21+ } )
22+ ] ;
23+ }
Original file line number Diff line number Diff line change 1+ import subprocess
2+ import pytest
3+
4+ def test_iamb_installed (home_manager_build ):
5+ """Verifies that the iamb binary is installed."""
6+ bin_path = home_manager_build / "home-path/bin/iamb"
7+ assert bin_path .exists ()
8+ assert bin_path .is_file ()
9+
10+ def test_iamb_alias (home_manager_build ):
11+ """Verifies that the 'matrix' alias is present in bashrc."""
12+ bashrc = home_manager_build / "home-files/.bashrc"
13+ content = bashrc .read_text ()
14+ assert "alias matrix=" in content
15+ assert "iamb" in content
Original file line number Diff line number Diff line change 1+ import subprocess
2+ import pytest
3+
4+ def test_weechat_installed (home_manager_build ):
5+ """Verifies that the weechat binary is installed."""
6+ bin_path = home_manager_build / "home-path/bin/weechat"
7+ assert bin_path .exists ()
8+ assert bin_path .is_file ()
You can’t perform that action at this time.
0 commit comments