3 ms·
Are you using flakes? AFAIK `command-not-found` does not work with them. See https://github.com/NixOS/nixpkgs/issues/171054 https://github.com/NixOS/nixpkgs/iss
by jml7c5 4y ago
Are you using flakes? AFAIK `command-not-found` does not work with them. See https://github.com/NixOS/nixpkgs/issues/171054 https://github.com/NixOS/nixpkgs/issues/171054 and https://discourse.nixos.org/t/why-isnt-there-an-official-built-in-way-to-find-what-package-provides-a-specific-executable/22937 https://discourse.nixos.org/t/why-isnt-there-an-official-bui...
`nix-index` is a flake-compatible alternative: https://github.com/bennofs/nix-index https://github.com/bennofs/nix-index
- deleted 4y ago[deleted]
- colordrops 4y agoI am using flakes, and now I know why `command-not-found` doesn't work, thank you.
- pxc 4y agoYou can make it work again! It's a one-liner in configuration.nix. Solutions and alternatives were covered in detail in a recent Discourse thread: https://discourse.nixos.org/t/which-package-provides-ifconfig/25824/3 https://discourse.nixos.org/t/which-package-provides-ifconfi...