Enable command-not-found

5a5db609e5 disabled it by default, which
may have been unintentional. mkEnableOption considered harmful.
This commit is contained in:
Eelco Dolstra 2017-10-10 12:25:02 +02:00
parent 30a1b94926
commit 9df79de1a1
No known key found for this signature in database
GPG Key ID: 8170B4726D7198DE
1 changed files with 8 additions and 1 deletions

View File

@ -25,7 +25,14 @@ in
{ {
options.programs.command-not-found = { options.programs.command-not-found = {
enable = mkEnableOption "command-not-found hook for interactive shell"; enable = mkOption {
type = types.bool;
default = true;
description = ''
Whether interactive shells should show which Nix package (if
any) provides a missing command.
'';
};
dbPath = mkOption { dbPath = mkOption {
default = "/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite" ; default = "/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite" ;