Use alejandra formatter / fix warnings
This commit is contained in:
parent
c5b1041bbb
commit
693d4e3c70
70 changed files with 1424 additions and 1547 deletions
|
|
@ -3,8 +3,7 @@
|
|||
config,
|
||||
options,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
options.mods.yazi = {
|
||||
enable = lib.mkOption {
|
||||
default = true;
|
||||
|
|
@ -19,8 +18,8 @@
|
|||
description = "Use default yazi config (if disabled only additionalConfig is used)";
|
||||
};
|
||||
additionalConfig = lib.mkOption {
|
||||
default = { };
|
||||
example = { };
|
||||
default = {};
|
||||
example = {};
|
||||
type = with lib.types; attrsOf anything;
|
||||
description = "Additional config for yazi";
|
||||
};
|
||||
|
|
@ -31,16 +30,15 @@
|
|||
description = "Use default yazi keymap (if disabled only additionalKeymap is used)";
|
||||
};
|
||||
additionalKeymap = lib.mkOption {
|
||||
default = { };
|
||||
example = { };
|
||||
default = {};
|
||||
example = {};
|
||||
type = with lib.types; attrsOf anything;
|
||||
description = "Additional keymap for yazi";
|
||||
};
|
||||
};
|
||||
config =
|
||||
let
|
||||
conf = import ./yazi.nix;
|
||||
in
|
||||
config = let
|
||||
conf = import ./yazi.nix;
|
||||
in
|
||||
lib.optionalAttrs (options ? home.packages) (
|
||||
lib.mkIf config.mods.yazi.enable {
|
||||
programs.yazi = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue