mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
20 lines
379 B
Nix
20 lines
379 B
Nix
{
|
|
config,
|
|
inputs,
|
|
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;
|
|
};
|
|
}
|