nixinate/tests/vmTest/common.nix

16 lines
415 B
Nix
Raw Normal View History

# Configuration that will be added to both the nixinatee node and the nixinator
# node.
2023-12-11 20:37:06 +01:00
{ inputs }: {
nix = {
extraOptions =
2023-12-11 20:37:06 +01:00
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;
};
}