Skip to content

takagiy/nixos-declarative-fish-plugin-mgr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

nixos-declarative-fish-plugin-mgr

NixOS module to manage fish plugins declaratively

Usage and Examples

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.