forked from lix-project/lix
raito
b8cb7abcf0
Here's my guide so far:
$ rg '((?!(recursive).*) Nix
(?!(daemon|store|expression|Rocks!|Packages|language|derivation|archive|account|user|sandbox|flake).*))'
-g '!doc/' --pcre2
All items from this query have been tackled. For the documentation side:
that's for lix-project/lix#162.
Additionally, all remaining references to github.com/NixOS/nix which
were not relevant were also replaced.
Fixes: lix-project/lix#148.
Fixes: lix-project/lix#162.
Change-Id: Ib3451fae5cb8ab8cd9ac9e4e4551284ee6794545
Signed-off-by: Raito Bezarius <raito@lix.systems>
41 lines
1.2 KiB
Markdown
41 lines
1.2 KiB
Markdown
R""(
|
|
|
|
# Examples
|
|
|
|
* Create the lock file for the flake in the current directory:
|
|
|
|
```console
|
|
# nix flake lock
|
|
warning: creating lock file '/home/myself/repos/testflake/flake.lock':
|
|
• Added input 'nix':
|
|
'github:NixOS/nix/9fab14adbc3810d5cc1f88672fde1eee4358405c' (2023-06-28)
|
|
• Added input 'nixpkgs':
|
|
'github:NixOS/nixpkgs/3d2d8f281a27d466fa54b469b5993f7dde198375' (2023-06-30)
|
|
```
|
|
|
|
* Add missing inputs to the lock file for a flake in a different directory:
|
|
|
|
```console
|
|
# nix flake lock ~/repos/another
|
|
warning: updating lock file '/home/myself/repos/another/flake.lock':
|
|
• Added input 'nixpkgs':
|
|
'github:NixOS/nixpkgs/3d2d8f281a27d466fa54b469b5993f7dde198375' (2023-06-30)
|
|
```
|
|
|
|
> **Note**
|
|
>
|
|
> When trying to refer to a flake in a subdirectory, write `./another`
|
|
> instead of `another`.
|
|
> Otherwise Lix will try to look up the flake in the registry.
|
|
|
|
# Description
|
|
|
|
This command adds inputs to the lock file of a flake (`flake.lock`)
|
|
so that it contains a lock for every flake input specified in
|
|
`flake.nix`. Existing lock file entries are not updated.
|
|
|
|
If you want to update existing lock entries, use
|
|
[`nix flake update`](@docroot@/command-ref/new-cli/nix3-flake-update.md)
|
|
|
|
)""
|