From a67f9ee242e43bd524df8a906c0792c1e68900d8 Mon Sep 17 00:00:00 2001 From: Himadri Bhattacharjee <107522312+lavafroth@users.noreply.github.com> Date: Mon, 12 Feb 2024 08:42:06 +0530 Subject: [PATCH] docs: add troubleshooting section --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 74b69c5..b21aaff 100644 --- a/README.md +++ b/README.md @@ -37,3 +37,18 @@ popd ``` followed by another rebuild. + +## Troubleshooting + +### command-not-found unable to connect to database + +The programs.sqlite is only generated for the nixos- prefixed channels. + +Run the following as root: + +```sh +nix-channel --add https://nixos.org/channels/nixos-unstable nixos +nix-channel --update +``` + +Further reading: [NixOS discourse](https://discourse.nixos.org/t/command-not-found-unable-to-open-database/3807).