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
926aed0c89
commit
4c0ca5afda
20
README.md
20
README.md
@ -48,6 +48,26 @@ Remove old generations from EFI:
|
||||
sudo /run/current-system/bin/switch-to-configuration boot
|
||||
```
|
||||
|
||||
## Evaluate configuration.nix to JSON
|
||||
|
||||
TODO: https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-show-config.html
|
||||
|
||||
* https://discourse.nixos.org/t/can-i-run-nix-instantiate-eval-strict-on-my-configuration-nix/7105/4?u=langfingaz
|
||||
|
||||
This evaluates `configuration.nix` (single module):
|
||||
|
||||
```shell
|
||||
NIXPKGS_ALLOW_UNFREE=1 nix-instantiate --strict --json --eval -E '
|
||||
import ./yodaTab/configuration.nix {
|
||||
config = {};
|
||||
pkgs = import <nixpkgs> {};
|
||||
lib = import <nixpkgs/lib>;
|
||||
}
|
||||
' > evaluated-config.json
|
||||
```
|
||||
|
||||
Then open [evaluated-config.json](evaluated-config.json).
|
||||
|
||||
## Install Home Manager with niv
|
||||
|
||||
niv:
|
||||
|
Loading…
Reference in New Issue
Block a user