mirror of
https://github.com/ryan4yin/nixos-and-flakes-book.git
synced 2024-11-21 23:53:12 +01:00
Merge pull request #81 from sdelrio/fix-introduction-to-flakes-typo
fix: typo in introduction-to-flakes
This commit is contained in:
commit
d0885bd510
@ -47,7 +47,7 @@ I delved into some details regarding Flakes:
|
||||
|
||||
After reviewing these resources, it seems that Flakes may be(or may not...) stabilized within two years, possibly accompanied by some breaking changes.
|
||||
|
||||
## the New CLI and the Classic CLI
|
||||
## The New CLI and the Classic CLI
|
||||
|
||||
Nix introduced two experimental features, `nix-command` and `flakes`, in the year 2020.
|
||||
These features bring forth a new command-line interface (referred to as the New CLI), a standardized Nix package structure definition (known as the Flakes feature), and features like `flake.lock`, similar to version lock files in cargo/npm.
|
||||
@ -70,7 +70,7 @@ When researching, you can replace them with the corresponding New CLI commands (
|
||||
4. `nix-build`: `nix-build` builds Nix packages and places the build results in `/nix/store`, but it does not record them in Nix's declarative configuration.
|
||||
1. New CLI: `nix-build` is replaced by `nix build`.
|
||||
5. `nix-collect-garbage`: Garbage collection command used to clean up unused Store Objects in `/nix/store`.
|
||||
1. There is a smimilar command in the New CLI, `nix store gc --debug`, but it do not clean the profile generations, so there is currently no alternative for this command.
|
||||
1. There is a similar command in the New CLI, `nix store gc --debug`, but it do not clean the profile generations, so there is currently no alternative for this command.
|
||||
6. And other less commonly used commands are not listed here.
|
||||
1. You can refer to the detailed command comparison list in [Try to explain nix commands](https://qiita.com/Sumi-Sumi/items/6de9ee7aab10bc0dbead?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user