1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00
nix/tests/nixos
Eelco Dolstra c98026e982 Lazy trees v2
This adds a setting 'lazy-trees' that causes flake inputs to be
"mounted" as virtual filesystems on top of /nix/store as random
"virtual" store paths. Only when the store path is actually used as a
dependency of a store derivation do we materialize ("devirtualize")
the input by copying it to its content-addressed location in the
store.

String contexts determine when devirtualization happens. One wrinkle
is that there are cases where we had store paths without proper
contexts, in particular when the user does `toString <path>` (where
<path> is a source tree in the Nix store) and passes the result to a
derivation. This usage was always broken, since it can result in
derivations that lack correct references. But to ensure that we don't
change evaluation results, we introduce a new type of context that
results in devirtualization but not in store references. We also now
print a warning about this.
2025-05-19 16:45:53 +02:00
..
ca-fd-leak test/ca-fd-leak: fix clang-tidy lints 2025-03-27 11:24:28 +01:00
cgroups Format .nix files 2025-01-24 17:04:02 +01:00
containers Format .nix files 2025-01-24 17:04:02 +01:00
fetch-git Add inputs.self.lfs 2025-02-13 17:59:27 +01:00
functional Fix pkgs.nixVersions and installTests 2025-04-20 22:20:52 +02:00
user-sandboxing Format .nix files 2025-01-24 17:04:02 +01:00
authorization.nix Format .nix files 2025-01-24 17:04:02 +01:00
chroot-store.nix Format .nix files 2025-01-24 17:04:02 +01:00
default.nix Remove otherNixes.nix_2_18 2025-05-15 11:10:21 +02:00
fetchurl.nix Format .nix files 2025-01-24 17:04:02 +01:00
fsync.nix Format .nix files 2025-01-24 17:04:02 +01:00
git-submodules.nix tests/nixos: Work around network-online.target inactivity 2025-04-01 16:36:47 +02:00
github-flakes.nix Lazy trees v2 2025-05-19 16:45:53 +02:00
gzip-content-encoding.nix Format .nix files 2025-01-24 17:04:02 +01:00
nix-copy-closure.nix Fix nix-copy-closure VM test 2025-05-15 12:55:08 +02:00
nix-copy.nix tests/nixos: Work around network-online.target inactivity 2025-04-01 16:36:47 +02:00
nix-docker-test.sh tests/nixos: add more thorough nix-docker tests 2024-11-11 22:56:46 +00:00
nix-docker.nix tests/nixos: Work around network-online.target inactivity 2025-04-01 16:36:47 +02:00
nss-preload.nix tests/nixos: Work around network-online.target inactivity 2025-04-01 16:36:47 +02:00
remote-builds-ssh-ng.nix tests/nixos: Work around network-online.target inactivity 2025-04-01 16:36:47 +02:00
remote-builds.nix tests/nixos: Work around network-online.target inactivity 2025-04-01 16:36:47 +02:00
s3-binary-cache-store.nix tests/nixos: Work around network-online.target inactivity 2025-04-01 16:36:47 +02:00
setuid.nix Format .nix files 2025-01-24 17:04:02 +01:00
sourcehut-flakes.nix tests/nixos: Work around network-online.target inactivity 2025-04-01 16:36:47 +02:00
tarball-flakes.nix Format .nix files 2025-01-24 17:04:02 +01:00