Fish: Difference between revisions

Pigs (talk | contribs)
m NixOS System Configuration: make the nixos system configuration accomplish the same thing as the home manager example config
Dasj19 (talk | contribs)
Added example of using 3rd party fish plugins on plain NixOS
Line 70: Line 70:
     fishPlugins.grc
     fishPlugins.grc
     grc
     grc
    # Use 3rd-party fish plugins manually packaged.
    pkgs.callPackage ../fish-colored-man.nix {buildFishPlugin = pkgs.fishPlugins.buildFishPlugin; } )
   ];
   ];
</nowiki>
}}
Example of a file containing the definition of a fish plugin.
{{file|/etc/nixos/fish-colored-man.nix|nix|
<nowiki>
{
  lib,
  buildFishPlugin,
  fetchFromGitHub,
}:
buildFishPlugin {
  pname = "fish-colored-man";
  version = "0-unstable-20240416";
  src = fetchFromGitHub {
    owner = "decors";
    repo = "fish-colored-man";
    rev = "1ad8fff696d48c8bf173aa98f9dff39d7916de0e";
    hash = "sha256-uoZ4eSFbZlsRfISIkJQp24qPUNqxeD0JbRb/gVdRYlA=";
  };
}
</nowiki>
</nowiki>
}}
}}