Skip to content

Commit

Permalink
nixos-modules/microvm/optimization: update doc
Browse files Browse the repository at this point in the history
thanks to @nagisa
  • Loading branch information
astro committed Feb 15, 2024
1 parent d350318 commit 995b1c5
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions nixos-modules/microvm/optimization.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@ in
options.microvm.optimize = {
enable = lib.mkOption {
description = lib.mdDoc ''
Enables some optimizations to closure size and startup time:
- disables X libraries for non-graphical VMs
Enables some optimizations by default to closure size and startup time:
- defaults documentation to off
- defaults to using systemd in initrd
- builds qemu without graphics or sound for non-graphical qemu VMs
- use systemd-networkd
- disables systemd-network-wait-online
- disables NixOS system switching if the host store is not mounted
This takes a few hundred MB off the closure size, including qemu,
allowing for putting microvms inside Docker containers.
May cause more build time by e.g. rebuilding qemu.
allowing for putting MicroVMs inside Docker containers.
'';

type = lib.types.bool;
Expand Down

0 comments on commit 995b1c5

Please sign in to comment.