feat(homeModules): add zellij multiplexer

This commit is contained in:
Mohammad Rafiq 2025-05-20 16:59:06 +08:00
parent aa00ad1113
commit 812b512660
No known key found for this signature in database
5 changed files with 27 additions and 13 deletions

View file

@ -7,6 +7,7 @@
cli.shell = "zsh";
cli.editor = "nvf";
cli.file-browser = "yazi";
cli.multiplexer = "zellij";
cli.git.name = "Mohammad Rafiq";
cli.git.email = "rafiq@rrv.sh";
cli.git.defaultBranch = "prime";

View file

@ -8,6 +8,7 @@
shell = lib.pantheon.mkStrOption;
editor = lib.pantheon.mkStrOption;
file-browser = lib.pantheon.mkStrOption;
multiplexer = lib.pantheon.mkStrOption;
git = {
name = lib.pantheon.mkStrOption;
email = lib.pantheon.mkStrOption;

View file

@ -1,5 +1,10 @@
{ config, lib, ... }:
{
imports = [
./yazi.nix
];
config = lib.mkIf (config.cli.file-browser == "yazi") {
home.sessionVariables.FILE_BROWSER = "yazi";
programs.yazi = {
enable = true;
shellWrapperName = "t";
};
};
}

View file

@ -1,10 +0,0 @@
{ config, lib, ... }:
{
config = lib.mkIf (config.cli.file-browser == "yazi") {
home.sessionVariables.FILE_BROWSER = "yazi";
programs.yazi = {
enable = true;
shellWrapperName = "t";
};
};
}

View file

@ -0,0 +1,17 @@
{ config, lib, ... }:
{
config = lib.mkIf (config.cli.multiplexer == "zellij") {
home.sessionVariables.multiplexer = "zellij -c";
programs.zellij = {
enable = true;
attachExistingSession = true;
exitShellOnExit = true;
settings = {
default_layout = "compact";
pane_frames = false;
show_startup_tips = false;
show_release_notes = false;
};
};
};
}