rename qemu example

doc-do-over
Daniel Barlow 2023-09-15 17:25:02 +01:00
parent b7e805c97f
commit bb280c6d97
2 changed files with 4 additions and 6 deletions

View File

@ -48,7 +48,7 @@ Now build Liminix
.. code-block:: console
nix-build -I liminix-config=./examples/hellonet.nix \
nix-build -I liminix-config=./examples/hello-from-qemu.nix \
--arg device "import ./devices/qemu" -A outputs.default
In this command ``liminix-config`` points to the desired software

View File

@ -9,8 +9,10 @@ in rec {
../modules/dnsmasq
../modules/ssh
];
hostname = "hellonet";
hostname = "hello";
# configure the internal network (LAN) with an address
services.int = svc.network.address.build {
interface = config.hardware.networkInterfaces.lan;
family = "inet"; address ="10.3.0.1"; prefixLength = 16;
@ -30,10 +32,6 @@ in rec {
inherit interface;
ranges = [
"10.3.0.10,10.3.0.240"
# ra-stateless: sends router advertisements with the O and A
# bits set, and provides a stateless DHCP service. The client
# will use a SLAAC address, and use DHCP for other
# configuration information.
"::,constructor:$(output ${interface} ifname),ra-stateless"
];