NixOS module to manage fish plugins declaratively
In your /etc/nixos/configuration.nix
:
{ config, pkgs, ... }:
{
imports =
[
# 1. Add archive of this repository to your imports.
(fetchTarball
"https://github.com/takagiy/nixos-declarative-fish-plugin-mgr/archive/0.0.5.tar.gz")
#...
];
programs.fish = {
# 2. Enable fish-shell if you didn't.
enable = true;
# 3. Declare fish plugins to be installed.
plugins = [
"jethrokuan/fzf"
"b4b4r07/enhancd"
];
};
# 4. Make sure that the dependencies of the installed fish plugins are satisfised.
environment.systemPackages = with pkgs; [
fzf # Required by jethrokuan/fzf.
fzy # Required by b4b4r07/enhancd.
#...
];
#...
}
# 5. Re-login to the shell.