ooknet/modules/home/console/tools/nixIndex.nix

22 lines
453 B
Nix

{
lib,
osConfig,
inputs,
...
}: let
inherit (lib) mkIf;
cfg = osConfig.ooknet.console.tools.nixIndex;
in {
imports = [inputs.nix-index-db.hmModules.nix-index];
config = mkIf cfg.enable {
programs = {
nix-index = {
enable = true;
symlinkToCacheHome = true;
};
command-not-found.enable = false;
nix-index-database.comma.enable = true;
};
home.sessionVariables.NIX_AUTO_RUN = "1";
};
}