Ironically, I did not properly test that I had made the local and remote tests distinct. So the exampleFlake was hardcoded to 'local' only. This meant that building local and remote tests would return the same results. This commit fixes that. Additionally, I've made tests/vmTests/common.nix to deduplicate some of the code between nodes.
14 lines
401 B
Nix
14 lines
401 B
Nix
# Configuration that will be added to both the nixinatee node and the nixinator
|
|
# node.
|
|
{ inputs }:
|
|
{
|
|
nix = {
|
|
extraOptions =
|
|
let empty_registry = builtins.toFile "empty-flake-registry.json" ''{"flakes":[],"version":2}''; in
|
|
''
|
|
experimental-features = nix-command flakes
|
|
flake-registry = ${empty_registry}
|
|
'';
|
|
registry.nixpkgs.flake = inputs.nixpkgs;
|
|
};
|
|
}
|