aboutsummaryrefslogtreecommitdiff
path: root/tests/nixos
diff options
context:
space:
mode:
authorjulia <midnight@trainwit.ch>2024-05-15 19:11:32 +1000
committerjulia <midnight@trainwit.ch>2024-05-18 12:27:23 +1000
commit7a3745b07607d3fc85fb5a0a08832ab078080884 (patch)
treebc82a0a28077bb320a7a32c9d4bc7de9b213b47d /tests/nixos
parent236466faf385f98f3639ec04147c171774d03726 (diff)
Deprecate the online flake registries and vendor the default registry
Fixes #183, #110, #116. The default flake-registry option becomes 'vendored', and refers to a vendored flake-registry.json file in the install path. Vendored copy of the flake-registry is from github:NixOS/flake-registry at commit 9c69f7bd2363e71fe5cd7f608113290c7614dcdd. Change-Id: I752b81c85ebeaab4e582ac01c239d69d65580f37
Diffstat (limited to 'tests/nixos')
-rw-r--r--tests/nixos/github-flakes.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/nixos/github-flakes.nix b/tests/nixos/github-flakes.nix
index 1954208b9..e3437c5e8 100644
--- a/tests/nixos/github-flakes.nix
+++ b/tests/nixos/github-flakes.nix
@@ -146,6 +146,8 @@ in
virtualisation.additionalPaths = [ pkgs.hello pkgs.fuse ];
virtualisation.memorySize = 4096;
nix.settings.substituters = lib.mkForce [ ];
+ # note: URL flake-registries are currently deprecated.
+ nix.settings.flake-registry = "https://channels.nixos.org/flake-registry.json";
nix.extraOptions = "experimental-features = nix-command flakes";
networking.hosts.${(builtins.head nodes.github.networking.interfaces.eth1.ipv4.addresses).address} =
[ "channels.nixos.org" "api.github.com" "github.com" ];