add faster nix search

This commit is contained in:
Sakooooo 2023-07-08 19:04:15 +03:00
parent a3e8f36936
commit f90cb7bac8
Signed by: sako
GPG key ID: 3FD715D87D7725E0
2 changed files with 12 additions and 3 deletions

View file

@ -24,6 +24,13 @@
kitty.enable = true;
bspwm.enable = true;
};
shell = {
nix = {
# makes nix search nixpkgs <example>
# ALOT faster
search.enable = true;
};
};
};
# Nvidia Drivers

View file

@ -1,4 +1,7 @@
{ options, config, lib, pkgs, ...}:
{ inputs, options, config, lib, pkgs, ...}:
# this makes
# nix search nixpkgs <package>
# ALOT faster
with lib;
let cfg = config.modules.shell.nix.search;
in
@ -10,8 +13,7 @@ in
config = mkIf cfg.enable {
nix = {
registry = {
nixpkgs.flake = nixpkgs;
nixos-hardware.flake = nixos-hw;
nixpkgs.flake = inputs.nixpkgs;
};
};
};