forked from Fediversity/Fediversity
WIP: test data model thru VM #11
2 changed files with 34 additions and 3 deletions
|
@ -3,7 +3,6 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
modulesPath,
|
modulesPath,
|
||||||
sources,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -18,8 +17,6 @@ in
|
||||||
imports = [
|
imports = [
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
(modulesPath + "/../lib/testing/nixos-test-base.nix")
|
(modulesPath + "/../lib/testing/nixos-test-base.nix")
|
||||||
"${sources.disko}/module.nix"
|
|
||||||
../../../infra/common/proxmox-qemu-vm.nix
|
|
||||||
./sharedOptions.nix
|
./sharedOptions.nix
|
||||||
../../../infra/common/nixos/users.nix
|
../../../infra/common/nixos/users.nix
|
||||||
];
|
];
|
||||||
|
|
34
paste
34
paste
|
@ -10,7 +10,41 @@ command=(nix-instantiate --expr '
|
||||||
configuration = {
|
configuration = {
|
||||||
imports = [
|
imports = [
|
||||||
./deployment/check/common/targetNode.nix
|
./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" {
|
eval = import "${sources.nixpkgs}/nixos/lib/eval-config.nix" {
|
||||||
system = builtins.currentSystem;
|
system = builtins.currentSystem;
|
||||||
|
|
Loading…
Add table
Reference in a new issue