From c79710a843d42703e5b294d792a699b4582fbe5d Mon Sep 17 00:00:00 2001 From: mahmoud Date: Sun, 4 Jan 2026 02:46:12 -0800 Subject: [PATCH] command-not-found: correct nix-channel error message and documentation --- nixos/modules/programs/command-not-found/command-not-found.nix | 2 +- nixos/modules/programs/command-not-found/command-not-found.pl | 2 +- 2 files changed, 2 insertions(+), 2 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 40ee958a0a49..d1e8f91a525b 100644 --- a/nixos/modules/programs/command-not-found/command-not-found.nix +++ b/nixos/modules/programs/command-not-found/command-not-found.nix @@ -38,7 +38,7 @@ in 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.) + Requires nix-channels to be set and downloaded (sudo nix-channel --update.) See also nix-index and nix-index-database as an alternative for flakes-based systems. diff --git a/nixos/modules/programs/command-not-found/command-not-found.pl b/nixos/modules/programs/command-not-found/command-not-found.pl index 64f0f1a49877..6b59563bc2ae 100644 --- a/nixos/modules/programs/command-not-found/command-not-found.pl +++ b/nixos/modules/programs/command-not-found/command-not-found.pl @@ -19,7 +19,7 @@ if (! -e $dbPath) { 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"; + print STDERR " sudo nix-channel --update\n"; print STDERR "\n"; print STDERR "If you are using flakes, see nix-index and nix-index-database.\n"; print STDERR "\n";