1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-12 12:01:08 +01:00
home-manager/tests/modules/programs/zellij/config.nix
Dietrich Daroch 9a2dc0efbc zellij: Add extraConfig
This allows working around [#4659](https://github.com/nix-community/home-manager/issues/4659)

While fixing `toKDL` might be fun, I just don't think it's a good use of
anyone's time.

---

This is still untested.
2025-09-22 21:08:51 -05:00

37 lines
653 B
Nix

{ lib, ... }:
{
programs = {
zellij = {
enable = true;
settings = {
default_layout = "welcome";
};
extraConfig = ''
This_could_have_been_json {
}
'';
};
};
test.stubs = {
zellij = { };
};
nmt.script = ''
assertFileExists home-files/.config/zellij/config.kdl
assertFileContains \
home-files/.config/zellij/config.kdl \
'default_layout "welcome"'
assertFileContains \
home-files/.config/zellij/config.kdl \
'// extraConfig'
assertFileContains \
home-files/.config/zellij/config.kdl \
'This_could_have_been_json'
'';
}