From 0309303c7ee90c076f7db18ad4fe63abf690de49 Mon Sep 17 00:00:00 2001 From: Jessie Ross Date: Fri, 13 Jun 2025 23:32:46 +0700 Subject: [PATCH] command-not-found: Improve documentation --- .../programs/command-not-found/command-not-found.nix | 6 ++++++ 1 file changed, 6 insertions(+) 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 ec2927805d59..40ee958a0a49 100644 --- a/nixos/modules/programs/command-not-found/command-not-found.nix +++ b/nixos/modules/programs/command-not-found/command-not-found.nix @@ -37,6 +37,12 @@ in description = '' Whether interactive shells should show which Nix package (if any) provides a missing command. + + Requires nix-channels to be set and downloaded (sudo nix-channels --update.) + + See also nix-index and nix-index-database as an alternative for flakes-based systems. + + Additionally, having the env var NIX_AUTO_RUN set will automatically run the matching package, and with NIX_AUTO_RUN_INTERACTIVE it will confirm the package before running. ''; };