diff --git a/doc/new.rst b/doc/new.rst index ff2698d..57b3a0a 100644 --- a/doc/new.rst +++ b/doc/new.rst @@ -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 diff --git a/examples/hellonet.nix b/examples/hello-from-qemu.nix similarity index 78% rename from examples/hellonet.nix rename to examples/hello-from-qemu.nix index 45c496c..9e56f18 100644 --- a/examples/hellonet.nix +++ b/examples/hello-from-qemu.nix @@ -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" ];