43a3ac556a
Note: not the actual initial commit. I swear I will stop repeatedly force pushing to this single commit eventually ok.
29 lines
521 B
Nix
29 lines
521 B
Nix
{ inputs, config, lib, ... }:
|
|
|
|
let
|
|
cfg = config.my.cli.nix-index;
|
|
in {
|
|
imports = [
|
|
inputs.nix-index-database.nixosModules.nix-index
|
|
];
|
|
|
|
options.my.cli.nix-index = {
|
|
enable = lib.mkEnableOption null;
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
programs = {
|
|
nix-index = {
|
|
enable = true;
|
|
enableBashIntegration = false;
|
|
enableFishIntegration = false;
|
|
enableZshIntegration = false;
|
|
};
|
|
|
|
nix-index-database = {
|
|
comma.enable = true;
|
|
};
|
|
};
|
|
};
|
|
}
|