mirror of
https://github.com/nix-community/home-manager
synced 2024-11-22 20:53:14 +00:00
fish: plugins uses pluginModule type, add example
This commit is contained in:
parent
2f51b9e418
commit
0522c7c1f6
1 changed files with 28 additions and 4 deletions
|
@ -111,12 +111,36 @@ in
|
|||
};
|
||||
|
||||
programs.fish.plugins = mkOption {
|
||||
type = types.listOf types.package;
|
||||
type = types.listOf pluginModule;
|
||||
default = [];
|
||||
example = literalExample ''
|
||||
[
|
||||
{
|
||||
name = "z";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "jethrokuan";
|
||||
repo = "z";
|
||||
rev = "ddeb28a7b6a1f0ec6dae40c636e5ca4908ad160a";
|
||||
sha256 = "0c5i7sdrsp0q3vbziqzdyqn4fmp235ax4mn4zslrswvn8g3fvdyh";
|
||||
};
|
||||
}
|
||||
|
||||
# oh-my-fish plugins are stored in their own repositories, which
|
||||
# makes them simple to import into home-manager.
|
||||
{
|
||||
name = "fasd";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "oh-my-fish";
|
||||
repo = "plugin-fasd";
|
||||
rev = "38a5b6b6011106092009549e52249c6d6f501fba";
|
||||
sha256 = "06v37hqy5yrv5a6ssd1p3cjd9y3hnp19d3ab7dag56fs1qmgyhbs";
|
||||
};
|
||||
}
|
||||
]
|
||||
'';
|
||||
description = ''
|
||||
The plugins to add to fish.
|
||||
Built with <varname>buildFishPlugin</varname>.
|
||||
Overrides manually installed ones.
|
||||
The plugins to source in
|
||||
<filename>conf.d/99plugins.fish</filename>.
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue