diff --git a/README.md b/README.md index bc5eb1b..2b0a124 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,8 @@ sudo nixos-generate-config --dir yodaTab ```shell # Note how your shell prefix changes. nix-shell --packages appimage-run +``` +```shell # Inside the shell, you can run an AppImage: appimage-run ~/Downloads/ubports-installer_0.10.0_linux_x86_64.AppImage ``` @@ -141,6 +143,25 @@ There are two (?) theses about Nix. One is https://edolstra.github.io/pubs/phd-t * https://mipmip.github.io/home-manager-option-search * Or `man home-configuration.nix` +### Search wich package owns a file + +```shell +# Note how your shell prefix changes. +nix-shell --packages nix-index +``` +```shell +# Inside the shell: + +# Either build the index manually (requires >8GB RAM) +nix-index +# Or download weekly build: +mkdir -p ~/.cache/nix-index/ && wget -q -N https://github.com/nix-community/nix-index-database/releases/latest/download/index-x86_64-linux -O ~/.cache/nix-index/files + +# Then search for a file +nix-locate -w '/bash' +``` + + ### References Some references to websites that helped me create this repository: