mirror of
https://github.com/NixOS/nix
synced 2025-06-30 11:43:15 +02:00
Add '--no-net' convenience flag
This flag * Disables substituters. * Sets the tarball-ttl to infinity (ensuring e.g. that the flake registry and any downloaded flakes are considered current). * Disables retrying downloads and sets the connection timeout to the minimum. (So it doesn't completely disable downloads at the moment.)
This commit is contained in:
parent
415fc233e3
commit
8ea842260b
5 changed files with 35 additions and 20 deletions
|
@ -255,7 +255,7 @@ public:
|
|||
"Secret keys with which to sign local builds."};
|
||||
|
||||
Setting<unsigned int> tarballTtl{this, 60 * 60, "tarball-ttl",
|
||||
"How soon to expire files fetched by builtins.fetchTarball and builtins.fetchurl."};
|
||||
"How long downloaded files are considered up-to-date."};
|
||||
|
||||
Setting<bool> requireSigs{this, true, "require-sigs",
|
||||
"Whether to check that any non-content-addressed path added to the "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue