feat(homeModules): add zellij multiplexer
This commit is contained in:
parent
aa00ad1113
commit
812b512660
5 changed files with 27 additions and 13 deletions
|
@ -7,6 +7,7 @@
|
||||||
cli.shell = "zsh";
|
cli.shell = "zsh";
|
||||||
cli.editor = "nvf";
|
cli.editor = "nvf";
|
||||||
cli.file-browser = "yazi";
|
cli.file-browser = "yazi";
|
||||||
|
cli.multiplexer = "zellij";
|
||||||
cli.git.name = "Mohammad Rafiq";
|
cli.git.name = "Mohammad Rafiq";
|
||||||
cli.git.email = "rafiq@rrv.sh";
|
cli.git.email = "rafiq@rrv.sh";
|
||||||
cli.git.defaultBranch = "prime";
|
cli.git.defaultBranch = "prime";
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
shell = lib.pantheon.mkStrOption;
|
shell = lib.pantheon.mkStrOption;
|
||||||
editor = lib.pantheon.mkStrOption;
|
editor = lib.pantheon.mkStrOption;
|
||||||
file-browser = lib.pantheon.mkStrOption;
|
file-browser = lib.pantheon.mkStrOption;
|
||||||
|
multiplexer = lib.pantheon.mkStrOption;
|
||||||
git = {
|
git = {
|
||||||
name = lib.pantheon.mkStrOption;
|
name = lib.pantheon.mkStrOption;
|
||||||
email = lib.pantheon.mkStrOption;
|
email = lib.pantheon.mkStrOption;
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
config = lib.mkIf (config.cli.file-browser == "yazi") {
|
||||||
./yazi.nix
|
home.sessionVariables.FILE_BROWSER = "yazi";
|
||||||
];
|
programs.yazi = {
|
||||||
|
enable = true;
|
||||||
|
shellWrapperName = "t";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
17
modules/home/cli/multiplexer/default.nix
Normal file
17
modules/home/cli/multiplexer/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue