nix, nix-build, nix-env, nix-collect-garbage, nix-shell: add German translation (#9365)
* nix, nix-build, nix-env, nix-collect-garbage, nix-shell: add German translation * nix, nix-build, nix-env, nix-collect-garbage, nix-shell: apply suggestions from code review * nix, nix-build, nix-env, nix-collect-garbage, nix-shell: Applied changes from German code review to originals * Update pages.de/common/nix-collect-garbage.md
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
|
||||
- Build a Nix expression:
|
||||
|
||||
`nix-build --attr {{expression_name}}`
|
||||
`nix-build '<nixpkgs>' --attr {{firefox}}`
|
||||
|
||||
- Build a sandboxed Nix expression (on non-NixOS):
|
||||
|
||||
`nix-build --attr {{expression_name}} --option sandbox true`
|
||||
`nix-build '<nixpkgs>' --attr {{firefox}} --option sandbox true`
|
||||
|
@@ -14,4 +14,4 @@
|
||||
|
||||
- Delete all store paths older than 30 days:
|
||||
|
||||
`sudo nix-collect-garbage --delete-older-than {{30d}}`
|
||||
`sudo nix-collect-garbage --delete-older-than 30d`
|
||||
|
@@ -9,7 +9,7 @@
|
||||
|
||||
- Run shell command in non-interactive shell and exit:
|
||||
|
||||
`nix-shell --run "{{command}} {{command_arguments}}"`
|
||||
`nix-shell --run "{{command}} {{arg1 arg2 ...}}"`
|
||||
|
||||
- Start with expression in `default.nix` in the current directory:
|
||||
|
||||
@@ -17,12 +17,12 @@
|
||||
|
||||
- Start with packages loaded from nixpkgs:
|
||||
|
||||
`nix-shell --packages {{package_name_1}} {{package_name_2}}`
|
||||
`nix-shell --packages {{package_name_1 package_name_2 ...}}`
|
||||
|
||||
- Start with packages loaded from specific nixpkgs revision:
|
||||
|
||||
`nix-shell --packages {{package_names}} -I nixpkgs={{https://github.com/NixOS/nixpkgs/archive/nixpkgs_revision.tar.gz}}`
|
||||
`nix-shell --packages {{package_name_1 package_name_2 ...}} -I nixpkgs={{https://github.com/NixOS/nixpkgs/archive/nixpkgs_revision.tar.gz}}`
|
||||
|
||||
- Evaluate rest of file in specific interpreter, for use in `#!-scripts` (see <https://nixos.org/manual/nix/stable/#use-as-a-interpreter>):
|
||||
|
||||
`nix-shell -i {{interpreter}} --packages {{package_names}}`
|
||||
`nix-shell -i {{interpreter}} --packages {{package_name_1 package_name_2 ...}}`
|
||||
|
Reference in New Issue
Block a user