Compare commits
5 Commits
dd283fdffe
...
43118be4b8
| Author | SHA1 | Date | |
|---|---|---|---|
|
43118be4b8
|
|||
|
0299411093
|
|||
|
63bd1471d8
|
|||
|
647432314d
|
|||
|
bfaaee0f36
|
@@ -7,33 +7,6 @@
|
||||
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 {
|
||||
@@ -126,15 +99,17 @@ with lib; let
|
||||
keybinds = values;
|
||||
};
|
||||
in {
|
||||
options.home.shell.zellij = {
|
||||
options.home.shell.zellij = let
|
||||
jsonFormat = pkgs.formats.yaml {};
|
||||
in {
|
||||
enable = mkEnableOption "Enable Zellij";
|
||||
clearDefaultKeybinds = mkEnableOption "Clear default keybinds";
|
||||
settings = mkOption {
|
||||
type = (pkgs.formats.yaml {}).type;
|
||||
inherit (jsonFormat) type;
|
||||
default = {};
|
||||
};
|
||||
layouts = mkOption {
|
||||
type = (pkgs.formats.yaml {}).type;
|
||||
inherit (jsonFormat) type;
|
||||
default = {};
|
||||
};
|
||||
extraSettings = mkOption {
|
||||
|
||||
Reference in New Issue
Block a user