mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
Fix comma module
This commit is contained in:
parent
52622bc408
commit
a9507da53a
1 changed files with 7 additions and 5 deletions
|
|
@ -3,14 +3,16 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
cfg = config.myConfig.comma;
|
||||||
|
in {
|
||||||
imports = [inputs.nix-index-database.nixosModules.nix-index];
|
imports = [inputs.nix-index-database.nixosModules.nix-index];
|
||||||
|
|
||||||
options.myConfig.comma.enable = lib.mkEnableOption "";
|
options.myConfig.comma.enable = lib.mkEnableOption "";
|
||||||
|
|
||||||
config = lib.mkIf config.myConfig.comma.enable {
|
config = {
|
||||||
programs.command-not-found.enable = false;
|
programs.command-not-found.enable = !cfg.enable;
|
||||||
programs.nix-index.enable = true;
|
programs.nix-index.enable = cfg.enable;
|
||||||
programs.nix-index-database.comma.enable = true;
|
programs.nix-index-database.comma.enable = cfg.enable;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue