update README

This commit is contained in:
Daniel Langbein 2023-08-30 16:11:59 +02:00
parent 926aed0c89
commit 4c0ca5afda

View File

@ -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: