nixos/modules/shell/nix/search.nix
2023-07-08 19:04:15 +03:00

20 lines
360 B
Nix

{ inputs, options, config, lib, pkgs, ...}:
# this makes
# nix search nixpkgs <package>
# ALOT faster
with lib;
let cfg = config.modules.shell.nix.search;
in
{
options.modules.shell.nix.search = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
nix = {
registry = {
nixpkgs.flake = inputs.nixpkgs;
};
};
};
}