uvms/examples/dummy.nix

46 lines
1.1 KiB
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";
vmapps.enable = true;
_module.args.inputs = import ../npins;
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.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";
};
2025-09-17 16:51:24 +03:00
# TODO: cmdline, kernel, initrd, fileSystems
}