1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 10:49:48 +01:00

fish: plugins uses pluginModule type, add example

This commit is contained in:
Ryan Orendorff 2019-09-24 01:19:35 -07:00 committed by Robert Helgesson
parent 2f51b9e418
commit 0522c7c1f6
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -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>.
'';
};