Misc
This commit is contained in:
parent
f3e7b29a98
commit
8fd6a0d2d8
2 changed files with 8 additions and 9 deletions
|
@ -27,6 +27,7 @@ fi
|
|||
info "Evaluating"
|
||||
# Evaluating can take a lot of memory, and Nix doesn't free it until the program ends,
|
||||
# which can be limiting on memory-constrained devices. Hence the build step is separate.
|
||||
# Drawback: it will query info about missing paths twice
|
||||
# nix eval doesn't use the eval cache, so we do a nix build --dry-run
|
||||
# sudo so the eval cache is shared with nixos-rebuild
|
||||
json=$(time sudo nix build "$self#nixosConfigurations.$HOSTNAME.config.system.build.toplevel" --dry-run --json )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue