uvms/examples/dummy.nix
Else Someone 17bde34c96 taps: MVE
EIO crash in CH was caused by CH trying to writev
before the interface has been assigned any addresses;
adding an address prior to passing the FD (via 80-vm-vt.network)
solves the issue. It is still unclear what causes the interrupt=None
in the vhost_user/passt branch
2026-02-12 20:23:55 +02:00

47 lines
1.1 KiB
Nix

{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [
../profiles/all.nix
(modulesPath + "/profiles/minimal.nix")
];
system.stateVersion = "25.11";
networking.hostName = "dummy";
vmapps.enable = true;
_module.args.inputs = import ../npins;
# following microvm.nix:
boot.loader.grub.enable = false;
boot.initrd.systemd.enable = true;
fileSystems."/" = lib.mkDefault {
device = "rootfs"; # how does this work? does this assign a label to the tmpfs?
fsType = "tmpfs";
options = [ "size=20%,mode=0755" ];
neededForBoot = true;
};
boot.initrd.systemd.settings.Manager.DefaultTimeoutStartSec = 30;
systemd.settings.Manager.DefaultTimeoutStopSec = 10;
networking.useNetworkd = true;
networking.nftables.enable = true;
uvms.cloud-hypervisor.enable = true;
users.mutableUsers = false;
users.users.root.password = "hacktheplanet!";
services.getty.autologinUser = "root";
systemd.services."suid-sgid-wrappers".serviceConfig = {
StandardOutput = "journal+console";
StandardError = "journal+console";
};
# TODO: cmdline, kernel, initrd, fileSystems
}