mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
18 lines
407 B
Nix
18 lines
407 B
Nix
{
|
|
inputs,
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
cfg = config.myConfig.comma;
|
|
in {
|
|
imports = [inputs.nix-index-database.nixosModules.nix-index];
|
|
|
|
options.myConfig.comma.enable = lib.mkEnableOption "";
|
|
|
|
config = {
|
|
programs.command-not-found.enable = !cfg.enable;
|
|
programs.nix-index.enable = cfg.enable;
|
|
programs.nix-index-database.comma.enable = cfg.enable;
|
|
};
|
|
}
|