VO5HBWZSZR5DLOP6LFGCKMQDA2WAS2J4ICWL3CWARKJL76RL63FAC
layout {
pane stacked=true
pane size=1 borderless=true {
plugin location="zellij:compact-bar"
}
}
{config, ...}: {
programs.zellij.enable = true;
programs.gitui.enable = true;
{
config,
lib,
...
}: let
mkLayoutFile = file_name: {
xdg.configFile."zellij/layouts/${file_name}".source = "layouts/${file_name}";
};
merge = lib.foldl (a: b: a // b) {};
layouts = with builtins; map mkLayoutFile (attrNames (readDir ./layouts));
in
merge layouts
// {
programs.zellij.enable = true;
programs.gitui.enable = true;
xdg.configFile."zellij/config.kdl".text =
''
layout_dir "${config.xdg.configHome}/zellij/layouts"
theme_dir "${config.xdg.configHome}/zellij/themes"
''
+ builtins.readFile ./config.kdl;
xdg.configFile."zellij/config.kdl".text =
''
layout_dir "${config.xdg.configHome}/zellij/layouts"
theme_dir "${config.xdg.configHome}/zellij/themes"
''
+ builtins.readFile ./config.kdl;