diff --git a/README.md b/README.md index f9fb6f8..a350e0d 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ The built VMs are full-fat NixOS systems (a bit over 2GB for a VM with firefox). - PCI passthrough - System tray integration (VM tray applets appear in host system tray, with VM color border) - Dynamic memory control through vmsilo-balloond, when host memory is low it will reclaim memory from VMs -- Auto shutdown idle VMs +- Auto shutdown idle VMs (optional, can be enabled in VM settings) ## Comparison to Qubes @@ -134,6 +134,8 @@ For mpv, make sure you use `--vo=wlshm`. Other backends probably won't work. ## Configuration Options +There are a lot of configuration options but you don't really need to touch most of them. Check the examples for what a basic configuration looks like. + ### `programs.vmsilo` | Option | Type | Default | Description | @@ -268,7 +270,7 @@ client1.network.netvmSubnet = "10.200.5.2/31"; # client gets .2, router gets .3 ### Network Interface Configuration (`network.interfaces.`) -The `network.interfaces` option is an attrset where keys become guest-visible interface names (e.g., `wan`, `internal`). +For advanced or non-standard network configuration, you can manually configure interfaces. The `network.interfaces` option is an attrset where keys become guest-visible interface names (e.g., `wan`, `internal`). | Option | Type | Default | Description | |--------|------|---------|-------------| diff --git a/example/configuration.nix b/example/configuration.nix index 53a80c3..fe2fee7 100644 --- a/example/configuration.nix +++ b/example/configuration.nix @@ -45,8 +45,6 @@ { enable = true; user = "david"; - hostNetworking.nat.enable = true; - hostNetworking.nat.interface = "en+"; nixosVms = { untrusted = { @@ -59,7 +57,6 @@ }; guestConfig = [ vmsilo.nixosModules.optionalGuestSettings - { documentation.nixos.enable = true; } ]; guestPrograms = commonGuestPrograms; }; @@ -129,16 +126,6 @@ netvm = "host"; nameservers = [ "8.8.8.8" ]; }; - guestPrograms = with pkgs; [ - tcpdump - iperf - conntrack-tools - nftables - iptables - ethtool - bpftools - net-tools - ]; guestConfig = [ vmsilo.nixosModules.optionalGuestSettings ]; diff --git a/example/flake.nix b/example/flake.nix index 68f46e9..5ff7173 100644 --- a/example/flake.nix +++ b/example/flake.nix @@ -14,6 +14,7 @@ { nixosConfigurations.default = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; + specialArgs = { inherit vmsilo; }; modules = [ vmsilo.nixosModules.default ./configuration.nix