WIP: test data model thru VM #11

Closed
kiara wants to merge 70 commits from data-model-test-deployment-plain into deployment-data-model-with-tests
2 changed files with 34 additions and 3 deletions
Showing only changes of commit fe0edd897b - Show all commits

View file

@ -3,7 +3,6 @@
config,
lib,
modulesPath,
sources,
...
}:
@ -18,8 +17,6 @@ in
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
(modulesPath + "/../lib/testing/nixos-test-base.nix")
"${sources.disko}/module.nix"
../../../infra/common/proxmox-qemu-vm.nix
./sharedOptions.nix
../../../infra/common/nixos/users.nix
];

34
paste
View file

@ -10,7 +10,41 @@ command=(nix-instantiate --expr '
configuration = {
imports = [
./deployment/check/common/targetNode.nix
"${sources.nixpkgs}/nixos/modules/profiles/qemu-guest.nix"
"${sources.disko}/module.nix"
];
disabledModules = [ "virtualisation/qemu-vm.nix" ];
config = {
nix.nixPath = lib.mapAttrsToList (k: v: k + "=" + v) sources;
networking = {
nameservers = [
"95.215.185.6"
"95.215.185.7"
"2a00:51c0::5fd7:b906"
"2a00:51c0::5fd7:b907"
];
interfaces.eth0.ipv4.addresses = [
{
address = "95.215.187.203";
prefixLength = 24;
}
];
interfaces.eth0.ipv6.addresses = [
{
address = "2a00:51c0:13:1305::203";
prefixLength = 64;
}
];
defaultGateway = {
address = "95.215.187.1";
interface = "eth0";
};
defaultGateway6 = {
address = "2a00:51c0:13:1305::1";
interface = "eth0";
};
};
};
};
eval = import "${sources.nixpkgs}/nixos/lib/eval-config.nix" {
system = builtins.currentSystem;