uvms/examples/dummy.nix

39 lines
897 B
Nix
Raw Normal View History

2025-09-17 16:51:24 +03:00
{
config,
lib,
pkgs,
modulesPath,
2025-09-17 16:51:24 +03:00
...
}:
{
imports = [
../profiles/all.nix
(modulesPath + "/profiles/minimal.nix")
2025-09-17 16:51:24 +03:00
];
system.stateVersion = "25.11";
2025-09-17 16:51:24 +03:00
# following microvm.nix:
boot.loader.grub.enable = false;
boot.initrd.systemd.enable = true;
2025-09-17 16:51:24 +03:00
fileSystems."/" = lib.mkDefault {
device = "rootfs"; # how does this work? does this assign a label to the tmpfs?
fsType = "tmpfs";
options = [ "size=20%,mode=0755" ];
2025-09-17 16:51:24 +03:00
neededForBoot = true;
};
boot.initrd.systemd.emergencyAccess = true;
boot.initrd.systemd.settings.Manager.DefaultTimeoutStartSec = 15;
systemd.settings.Manager.DefaultTimeoutStartSec = 15;
networking.useNetworkd = true;
networking.nftables.enable = true;
uvms.cloud-hypervisor.enable = true;
users.mutableUsers = false;
users.users.root.password = "hacktheplanet!";
2025-09-17 16:51:24 +03:00
# TODO: cmdline, kernel, initrd, fileSystems
}