summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-10-10 12:25:02 +0200
committerEelco Dolstra <edolstra@gmail.com>2017-10-10 12:26:24 +0200
commit9df79de1a115920bd96a7d4e66bc3782865c8146 (patch)
treef5ca2212182f3865c1e9e56459906f54048ab123
parent30a1b9492683d9b56325f723856ac81b7362cd82 (diff)
downloadnixpkgs-9df79de1a115920bd96a7d4e66bc3782865c8146.tar
nixpkgs-9df79de1a115920bd96a7d4e66bc3782865c8146.tar.gz
nixpkgs-9df79de1a115920bd96a7d4e66bc3782865c8146.tar.bz2
nixpkgs-9df79de1a115920bd96a7d4e66bc3782865c8146.tar.lz
nixpkgs-9df79de1a115920bd96a7d4e66bc3782865c8146.tar.xz
nixpkgs-9df79de1a115920bd96a7d4e66bc3782865c8146.tar.zst
nixpkgs-9df79de1a115920bd96a7d4e66bc3782865c8146.zip
Enable command-not-found
5a5db609e5bd83bc589f36eef394f3ad172d6648 disabled it by default, which
may have been unintentional. mkEnableOption considered harmful.
-rw-r--r--nixos/modules/programs/command-not-found/command-not-found.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/nixos/modules/programs/command-not-found/command-not-found.nix b/nixos/modules/programs/command-not-found/command-not-found.nix
index 55529d73cb6..bbe7165c62f 100644
--- a/nixos/modules/programs/command-not-found/command-not-found.nix
+++ b/nixos/modules/programs/command-not-found/command-not-found.nix
@@ -25,7 +25,14 @@ in
 {
   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 {
       default = "/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite" ;