dynix/tests/module-allow-rebuild-in-vm.nix
2026-02-17 19:48:53 +01:00

31 lines
713 B
Nix

{ name, config, ... }:
{
system.includeBuildDependencies = true;
system.switch.enable = true;
documentation.enable = false;
virtualisation = {
additionalPaths = [ config.system.build.toplevel ];
writableStore = true;
mountHostNixStore = true;
installBootLoader = true;
# With how much memory Nix eval uses, this is essentially required.
memorySize = 8192;
cores = 8;
};
boot.loader.grub = {
enable = true;
device = "/dev/vda";
forceInstall = true;
};
# Just making something in this strict in `name`,
# which is only present as an argument for nodes and I don't want to
# confuse that with the test modules.
warnings = builtins.seq name [ ];
}