add compute1-vm
This commit is contained in:
parent
c1080783c6
commit
d6cf6c5a41
6 changed files with 74 additions and 8 deletions
18
nixosConfigurations/compute1-vm/default.nix
Normal file
18
nixosConfigurations/compute1-vm/default.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
microvm,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [ microvm.nixosModules.microvm ];
|
||||
|
||||
config = {
|
||||
microvm.hypervisor = "qemu";
|
||||
|
||||
# microvm boots the kernel directly; there is no ESP to install a bootloader onto
|
||||
boot.loader.systemd-boot.enable = lib.mkForce false;
|
||||
|
||||
# store optimisation is unsafe on microvm's virtiofs/block-backed store
|
||||
nix.optimise.automatic = lib.mkForce false;
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue