mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
update README
This commit is contained in:
parent
045b2959ae
commit
16182fdc2b
21
README.md
21
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:
|
||||
|
Loading…
Reference in New Issue
Block a user