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; kitty.enable = true;
bspwm.enable = true; bspwm.enable = true;
}; };
shell = {
nix = {
# makes nix search nixpkgs <example>
# ALOT faster
search.enable = true;
};
};
}; };
# Nvidia Drivers # 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; with lib;
let cfg = config.modules.shell.nix.search; let cfg = config.modules.shell.nix.search;
in in
@ -10,8 +13,7 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
nix = { nix = {
registry = { registry = {
nixpkgs.flake = nixpkgs; nixpkgs.flake = inputs.nixpkgs;
nixos-hardware.flake = nixos-hw;
}; };
}; };
}; };