1
1
Fork 0
nixos/options/custom/programs/nix-index.nix
Myned 53c8575116
git: migrate to forgejo
Squashes 1,331 commits

Signed-off-by: Myned <dev@bjork.tech>
2024-09-12 19:41:21 -05:00

23 lines
544 B
Nix

{ config, lib, ... }:
with lib;
let
cfg = config.custom.programs.nix-index;
in
{
options.custom.programs.nix-index.enable = mkOption { default = false; };
config = mkIf cfg.enable {
# https://github.com/nix-community/nix-index
# https://github.com/nix-community/nix-index-database
#?? nix-index
#?? nix-locate -p <package> <pattern>
programs = {
nix-index.enable = true;
command-not-found.enable = false;
};
home-manager.users.${config.custom.username}.programs.nix-index.enable = true;
};
}