2025-09-17 16:51:24 +03:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
2025-09-19 16:28:48 +03:00
|
|
|
modulesPath,
|
2025-09-17 16:51:24 +03:00
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../profiles/all.nix
|
2025-09-19 16:28:48 +03:00
|
|
|
(modulesPath + "/profiles/minimal.nix")
|
2025-09-17 16:51:24 +03:00
|
|
|
];
|
|
|
|
|
2025-09-19 16:28:48 +03:00
|
|
|
system.stateVersion = "25.11";
|
|
|
|
|
2025-09-17 16:51:24 +03:00
|
|
|
# following microvm.nix:
|
|
|
|
boot.loader.grub.enable = false;
|
2025-09-19 16:28:48 +03:00
|
|
|
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";
|
2025-09-19 16:28:48 +03:00
|
|
|
options = [ "size=20%,mode=0755" ];
|
2025-09-17 16:51:24 +03:00
|
|
|
neededForBoot = true;
|
|
|
|
};
|
2025-09-19 16:28:48 +03:00
|
|
|
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
|
|
|
|
}
|