rename qemu example
This commit is contained in:
parent
b7e805c97f
commit
bb280c6d97
2 changed files with 4 additions and 6 deletions
|
@ -48,7 +48,7 @@ Now build Liminix
|
||||||
|
|
||||||
.. code-block:: console
|
.. 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
|
--arg device "import ./devices/qemu" -A outputs.default
|
||||||
|
|
||||||
In this command ``liminix-config`` points to the desired software
|
In this command ``liminix-config`` points to the desired software
|
||||||
|
|
|
@ -9,8 +9,10 @@ in rec {
|
||||||
../modules/dnsmasq
|
../modules/dnsmasq
|
||||||
../modules/ssh
|
../modules/ssh
|
||||||
];
|
];
|
||||||
hostname = "hellonet";
|
|
||||||
|
|
||||||
|
hostname = "hello";
|
||||||
|
|
||||||
|
# configure the internal network (LAN) with an address
|
||||||
services.int = svc.network.address.build {
|
services.int = svc.network.address.build {
|
||||||
interface = config.hardware.networkInterfaces.lan;
|
interface = config.hardware.networkInterfaces.lan;
|
||||||
family = "inet"; address ="10.3.0.1"; prefixLength = 16;
|
family = "inet"; address ="10.3.0.1"; prefixLength = 16;
|
||||||
|
@ -30,10 +32,6 @@ in rec {
|
||||||
inherit interface;
|
inherit interface;
|
||||||
ranges = [
|
ranges = [
|
||||||
"10.3.0.10,10.3.0.240"
|
"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"
|
"::,constructor:$(output ${interface} ifname),ra-stateless"
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue