docs: add troubleshooting section
This commit is contained in:
15
README.md
15
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).
|
||||
|
||||
Reference in New Issue
Block a user