Commit graph

3 commits

Author SHA1 Message Date
Paul Meyer
bfd948c6e2 fix(treewide): remove trailing whitespace
Change-Id: I3116d3f397ba309be2418e188327143c7187b789
Reviewed-on: https://cl.snix.dev/c/snix/+/30235
Reviewed-by: Florian Klink <flokli@flokli.de>
Tested-by: besadii
Reviewed-by: Paul Meyer <katexochen0@gmail.com>
Autosubmit: Paul Meyer <katexochen0@gmail.com>
2025-03-22 17:29:59 +00:00
Florian Klink
ebc924d492 tests(tvix/nix-daemon): add a test suite for tvix nix-daemon
This uses runInLinuxVM to seed tvix-store with a path/closure, then sets
up a local-overlay store mount config using the following setup:

/tmp/tvix exposes everything seeded into tvix
/tmp/scratch represents an empty "local" nix store

This is overlayed to /tmp/merged/nix/store
(using /tmp/work as an overlayfs work dir).

Nix is configured with the local-overlay feature:
 - setting /tmp/merged as root
 - configuring a unix:///tmp/tvix-daemon.sock as lower store,
   with lower-store.real set to /tmp/tvix
 - configuring /tmp/scratch as an upper layer

For some reasons, check-mount needs to be set to false, as Nix doesn't
seem happy with the way we set up the mountpoints.

Change-Id: I03e1cf1d3aaa021a63dcb30ae482a6c3977851ba
Reviewed-on: https://cl.snix.dev/c/snix/+/30087
Reviewed-by: Vova Kryachko <v.kryachko@gmail.com>
Reviewed-by: Ilan Joselevich <personal@ilanjoselevich.com>
Tested-by: besadii
2025-03-18 21:50:22 +00:00
Florian Klink
36e4d017f5 chore(snix): s/tvix/snix/
Change-Id: Iae961416eea0a38bc57df7b736f6dda5903b0828
2025-03-17 17:15:08 +00:00