working on harmonia
This commit is contained in:
parent
1f466b63d3
commit
8dba8e7ce8
20 changed files with 556 additions and 90 deletions
31
tests/module-allow-rebuild-in-vm.nix
Normal file
31
tests/module-allow-rebuild-in-vm.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ 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 = 4096;
|
||||
cores = 4;
|
||||
|
||||
};
|
||||
|
||||
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 [ ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue