add faster nix search
This commit is contained in:
parent
a3e8f36936
commit
f90cb7bac8
2 changed files with 12 additions and 3 deletions
|
@ -24,6 +24,13 @@
|
|||
kitty.enable = true;
|
||||
bspwm.enable = true;
|
||||
};
|
||||
shell = {
|
||||
nix = {
|
||||
# makes nix search nixpkgs <example>
|
||||
# ALOT faster
|
||||
search.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Nvidia Drivers
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue