diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index f93ebb8e..d3955377 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -24,6 +24,13 @@ kitty.enable = true; bspwm.enable = true; }; + shell = { + nix = { + # makes nix search nixpkgs + # ALOT faster + search.enable = true; + }; + }; }; # Nvidia Drivers diff --git a/modules/shell/nix/search.nix b/modules/shell/nix/search.nix index f01d8863..0bec6288 100644 --- a/modules/shell/nix/search.nix +++ b/modules/shell/nix/search.nix @@ -1,4 +1,7 @@ -{ options, config, lib, pkgs, ...}: +{ inputs, options, config, lib, pkgs, ...}: +# this makes +# nix search nixpkgs +# 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; }; }; };