nixos/modules/shell/nix/search.nix

21 lines
360 B
Nix
Raw Normal View History

2023-07-08 20:04:15 +04:00
{ inputs, options, config, lib, pkgs, ...}:
# this makes
# nix search nixpkgs <package>
# ALOT faster
2023-07-08 20:00:13 +04:00
with lib;
let cfg = config.modules.shell.nix.search;
in
{
options.modules.shell.nix.search = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
nix = {
registry = {
2023-07-08 20:04:15 +04:00
nixpkgs.flake = inputs.nixpkgs;
2023-07-08 20:00:13 +04:00
};
};
};
}