man-db: make it the default man provider
For now, leave the old implementation under `man-old` attribute. Small warning: I had a leftover ~/.nix-profile/man from an old package, which caused man-db's man prefer it and ignore ~/.nix-profile/share/man. The PATH->MANPATH code just selects the first match for each PATH item.
This commit is contained in:
@@ -19,7 +19,7 @@ with lib;
|
||||
|
||||
config = mkIf config.programs.man.enable {
|
||||
|
||||
environment.systemPackages = [ pkgs.man ];
|
||||
environment.systemPackages = [ pkgs.man-db ];
|
||||
|
||||
environment.pathsToLink = [ "/share/man" ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user