mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
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.
This commit is contained in:
parent
f59891d511
commit
9a2dc0efbc
3 changed files with 81 additions and 1 deletions
37
tests/modules/programs/zellij/config.nix
Normal file
37
tests/modules/programs/zellij/config.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ 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'
|
||||
'';
|
||||
}
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
zellij-config = ./config.nix;
|
||||
zellij-enable-shells = ./enable-shells.nix;
|
||||
zellij-layout = ./layout.nix;
|
||||
zellij-theme = ./theme.nix;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue