mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
treewide: remove no-ops (#8061)
This commit is contained in:
parent
879e4d9060
commit
f2f1076c1f
37 changed files with 302 additions and 414 deletions
|
|
@ -13,43 +13,40 @@ let
|
|||
|
||||
renderSettings = settings: lib.concatStringsSep ";" (lib.mapAttrsToList renderSetting settings);
|
||||
|
||||
pluginModule = types.submodule (
|
||||
{ ... }:
|
||||
{
|
||||
options = {
|
||||
src = mkOption {
|
||||
type = with types; nullOr path;
|
||||
example = literalExpression ''
|
||||
(pkgs.fetchFromGitHub {
|
||||
owner = "jarun";
|
||||
repo = "nnn";
|
||||
rev = "v4.0";
|
||||
sha256 = "sha256-Hpc8YaJeAzJoEi7aJ6DntH2VLkoR6ToP6tPYn3llR7k=";
|
||||
}) + "/plugins";
|
||||
'';
|
||||
default = null;
|
||||
description = ''
|
||||
Path to the plugin folder.
|
||||
'';
|
||||
};
|
||||
|
||||
mappings = mkOption {
|
||||
type = with types; attrsOf str;
|
||||
description = ''
|
||||
Key mappings to the plugins.
|
||||
'';
|
||||
default = { };
|
||||
example = literalExpression ''
|
||||
{
|
||||
c = "fzcd";
|
||||
f = "finder";
|
||||
v = "imgview";
|
||||
};
|
||||
'';
|
||||
};
|
||||
pluginModule = types.submodule ({
|
||||
options = {
|
||||
src = mkOption {
|
||||
type = with types; nullOr path;
|
||||
example = literalExpression ''
|
||||
(pkgs.fetchFromGitHub {
|
||||
owner = "jarun";
|
||||
repo = "nnn";
|
||||
rev = "v4.0";
|
||||
sha256 = "sha256-Hpc8YaJeAzJoEi7aJ6DntH2VLkoR6ToP6tPYn3llR7k=";
|
||||
}) + "/plugins";
|
||||
'';
|
||||
default = null;
|
||||
description = ''
|
||||
Path to the plugin folder.
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
mappings = mkOption {
|
||||
type = with types; attrsOf str;
|
||||
description = ''
|
||||
Key mappings to the plugins.
|
||||
'';
|
||||
default = { };
|
||||
example = literalExpression ''
|
||||
{
|
||||
c = "fzcd";
|
||||
f = "finder";
|
||||
v = "imgview";
|
||||
};
|
||||
'';
|
||||
};
|
||||
};
|
||||
});
|
||||
in
|
||||
{
|
||||
meta.maintainers = with lib.maintainers; [ thiagokokada ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue