mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 22:11:33 +01:00
22 lines
382 B
Nix
22 lines
382 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;
|
|
nix-index.enable = cfg.enable;
|
|
nix-index-database.comma.enable = cfg.enable;
|
|
};
|
|
};
|
|
}
|