command-not-found: Add more context to error msg

Changed files
+3 -2
nixos
modules
programs
command-not-found
+3 -2
nixos/modules/programs/command-not-found/command-not-found.pl
···
print STDERR "$program: command not found\n";
print STDERR "\n";
print STDERR "command-not-found: Missing package database\n";
-
print STDERR "This likely means the database hasn't been generated yet.\n";
-
print STDERR "This tool requires nix-channels to generate the database.\n";
+
print STDERR "command-not-found is a tool for searching for missing packages.\n";
+
print STDERR "No database was found, this likely means the database hasn't been generated yet.\n";
+
print STDERR "This tool requires nix-channels to generate the database for the `nixos` channel.\n";
print STDERR "\n";
print STDERR "If you are using nix-channels you can run:\n";
print STDERR " sudo nix-channels --update\n";