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
|
|
|
let cfg = config.modules.shell.nix.search;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.modules.shell.nix.search = {
|
2024-08-01 16:24:09 +04:00
|
|
|
enable = lib.mkEnableOption false;
|
2023-07-08 20:00:13 +04:00
|
|
|
};
|
|
|
|
|
2024-08-01 16:24:09 +04:00
|
|
|
config = lib.mkIf cfg.enable {
|
2023-07-08 20:00:13 +04:00
|
|
|
nix = {
|
|
|
|
registry = {
|
2023-07-08 20:04:15 +04:00
|
|
|
nixpkgs.flake = inputs.nixpkgs;
|
2023-07-08 20:00:13 +04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|