From 16182fdc2bdbb42a413802e572aa862d6b218e93 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Thu, 24 Aug 2023 13:17:43 +0200 Subject: [PATCH] update README --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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: