Compare commits

..

5 Commits

View File

@@ -7,6 +7,33 @@
with lib; let
cfg = config.home.shell.zellij;
isEmpty = list: list == [];
plugin = {
options = {
name = mkOption {
type = types.str;
example = "filepicket";
};
location = mkOption {
type = types.nullOr types.str;
example = "zellij:strider";
description = ''
When null, defaults to zellij:`name`
'';
};
config = mkOption {
type = types.nullOr types.attrs;
default = null;
};
};
};
pluginToLines = plugin: let
location =
if plugin ? location
then plugin.location
else "location=\"${plugin.name}\"";
in ''
${plugin.name} ${location}
'';
keybind = {
options = {
bind = mkOption {
@@ -99,17 +126,15 @@ with lib; let
keybinds = values;
};
in {
options.home.shell.zellij = let
jsonFormat = pkgs.formats.yaml {};
in {
options.home.shell.zellij = {
enable = mkEnableOption "Enable Zellij";
clearDefaultKeybinds = mkEnableOption "Clear default keybinds";
settings = mkOption {
inherit (jsonFormat) type;
type = (pkgs.formats.yaml {}).type;
default = {};
};
layouts = mkOption {
inherit (jsonFormat) type;
type = (pkgs.formats.yaml {}).type;
default = {};
};
extraSettings = mkOption {