25 lines
613 B
Nix
25 lines
613 B
Nix
{ lib, ... }:
|
|
{
|
|
type = lib.types.submodule {
|
|
options = {
|
|
action = lib.mkOption {
|
|
description = "Declares the action this keybind runs.";
|
|
type = lib.types.submodule {
|
|
options = {
|
|
kind = lib.mkOption {
|
|
description = "Selects the keybind action kind.";
|
|
type = lib.types.enum [ "exec" ];
|
|
};
|
|
|
|
command = lib.mkOption {
|
|
description = "Command executed by this keybind.";
|
|
type = lib.types.str;
|
|
example = "ghostty";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|