
$ nix-build -A examples.dummy.config.debug.closure.erofs.list | xargs cat | xargs du -h 749M /nix/store/bzfv5x6lycq6hzhjv6d6vlk1q8fdg9di-base0.erofs 24M /nix/store/hp41jfq36y0mmjrzqilyh3jfsvqic3kb-nixos.erofs $ nix run -f . examples.dummy.config.uvms.cloud-hypervisor.runner ... <<< Welcome to NixOS 25.11pre-git (x86_64) - ttyS0 >>> nixos login: The definition of the `pkgs` fixpoint was moved to pkgs/default.nix. For that, dirToAttrs was moved to lib/, imported ad hoc
38 lines
897 B
Nix
38 lines
897 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
modulesPath,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
../profiles/all.nix
|
|
(modulesPath + "/profiles/minimal.nix")
|
|
];
|
|
|
|
system.stateVersion = "25.11";
|
|
|
|
# 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.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!";
|
|
|
|
|
|
# TODO: cmdline, kernel, initrd, fileSystems
|
|
}
|