nixos: do not set a default Nic driver
Setting a default driver will cause confusion later.
This commit is contained in:
parent
a2a152b68a
commit
233986e6bc
|
@ -8,10 +8,7 @@ with lib;
|
||||||
attrsOf (submodule ({ ... }: {
|
attrsOf (submodule ({ ... }: {
|
||||||
options.genode = {
|
options.genode = {
|
||||||
|
|
||||||
driver = mkOption {
|
driver = mkOption { type = types.enum [ "ipxe" "virtio" ]; };
|
||||||
type = types.enum [ "ipxe" "virtio" ];
|
|
||||||
default = "ipxe";
|
|
||||||
};
|
|
||||||
|
|
||||||
stack = mkOption {
|
stack = mkOption {
|
||||||
type = types.enum [ "lwip" "lxip" ];
|
type = types.enum [ "lwip" "lxip" ];
|
||||||
|
|
|
@ -72,6 +72,7 @@ rec {
|
||||||
address = "192.168.${toString fst}.${toString m.snd}";
|
address = "192.168.${toString fst}.${toString m.snd}";
|
||||||
prefixLength = 24;
|
prefixLength = 24;
|
||||||
}];
|
}];
|
||||||
|
genode.driver = "virtio";
|
||||||
});
|
});
|
||||||
in {
|
in {
|
||||||
key = "ip-address";
|
key = "ip-address";
|
||||||
|
|
Loading…
Reference in New Issue