mirror of
https://codeberg.org/muon/home.git
synced 2026-03-09 03:53:11 +00:00
Refactor terminal development
This commit is contained in:
parent
76d16b1348
commit
85c51ff9d0
7 changed files with 484 additions and 2133 deletions
104
modules/home/terminal/zellij/default.nix
Normal file
104
modules/home/terminal/zellij/default.nix
Normal file
|
|
@ -0,0 +1,104 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
zellij-muon = pkgs.zellij.overrideAttrs (previousAttrs: {
|
||||
patches = previousAttrs.patches ++ [./zellij/floating_fix.patch];
|
||||
});
|
||||
in {
|
||||
options.mods.zellij.enable =
|
||||
lib.mkEnableOption "enables zellij";
|
||||
|
||||
imports = [inputs.nvf.homeManagerModules.default];
|
||||
|
||||
config = lib.mkIf config.mods.terminal.development.enable {
|
||||
programs.zellij = {
|
||||
settings = {
|
||||
default_mode._args = ["locked"];
|
||||
show_startup_tips._args = [false];
|
||||
show_release_notes._args = [false];
|
||||
};
|
||||
|
||||
extraConfig = builtins.readFile ./config.kdl;
|
||||
|
||||
layouts = {
|
||||
dev = {
|
||||
layout = {
|
||||
_children = [
|
||||
{
|
||||
default_tab_template = {
|
||||
_children = [
|
||||
{
|
||||
pane = {
|
||||
size = 1;
|
||||
borderless = true;
|
||||
plugin = {
|
||||
location = "zellij:tab-bar";
|
||||
};
|
||||
};
|
||||
}
|
||||
{"children" = {};}
|
||||
{
|
||||
pane = {
|
||||
size = 1;
|
||||
borderless = true;
|
||||
plugin = {
|
||||
location = "zellij:status-bar";
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
{
|
||||
tab = {
|
||||
_props = {
|
||||
name = "project";
|
||||
focus = true;
|
||||
};
|
||||
_children = [
|
||||
{
|
||||
pane = {
|
||||
command = "zsh";
|
||||
args = ["-c" "direnv exec . nvim"];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
{
|
||||
tab = {
|
||||
_props = {
|
||||
name = "test";
|
||||
};
|
||||
_children = [
|
||||
{
|
||||
pane = {};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
{
|
||||
tab = {
|
||||
_props = {
|
||||
name = "git";
|
||||
};
|
||||
_children = [
|
||||
{
|
||||
pane = {
|
||||
command = "lazygit";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue