networking module: Add some missing literalExample
This commit is contained in:
@@ -523,7 +523,7 @@ in
|
|||||||
|
|
||||||
networking.bonds = mkOption {
|
networking.bonds = mkOption {
|
||||||
default = { };
|
default = { };
|
||||||
example = {
|
example = literalExample {
|
||||||
bond0 = {
|
bond0 = {
|
||||||
interfaces = [ "eth0" "wlan0" ];
|
interfaces = [ "eth0" "wlan0" ];
|
||||||
miimon = 100;
|
miimon = 100;
|
||||||
@@ -598,7 +598,7 @@ in
|
|||||||
networking.macvlans = mkOption {
|
networking.macvlans = mkOption {
|
||||||
type = types.attrsOf types.optionSet;
|
type = types.attrsOf types.optionSet;
|
||||||
default = { };
|
default = { };
|
||||||
example = {
|
example = literalExample {
|
||||||
wan = {
|
wan = {
|
||||||
interface = "enp2s0";
|
interface = "enp2s0";
|
||||||
mode = "vepa";
|
mode = "vepa";
|
||||||
@@ -629,7 +629,7 @@ in
|
|||||||
networking.sits = mkOption {
|
networking.sits = mkOption {
|
||||||
type = types.attrsOf types.optionSet;
|
type = types.attrsOf types.optionSet;
|
||||||
default = { };
|
default = { };
|
||||||
example = {
|
example = literalExample {
|
||||||
hurricane = {
|
hurricane = {
|
||||||
remote = "10.0.0.1";
|
remote = "10.0.0.1";
|
||||||
local = "10.0.0.22";
|
local = "10.0.0.22";
|
||||||
@@ -688,7 +688,7 @@ in
|
|||||||
|
|
||||||
networking.vlans = mkOption {
|
networking.vlans = mkOption {
|
||||||
default = { };
|
default = { };
|
||||||
example = {
|
example = literalExample {
|
||||||
vlan0 = {
|
vlan0 = {
|
||||||
id = 3;
|
id = 3;
|
||||||
interface = "enp3s0";
|
interface = "enp3s0";
|
||||||
@@ -727,7 +727,7 @@ in
|
|||||||
|
|
||||||
networking.wlanInterfaces = mkOption {
|
networking.wlanInterfaces = mkOption {
|
||||||
default = { };
|
default = { };
|
||||||
example = {
|
example = literalExample {
|
||||||
"wlan-station0" = {
|
"wlan-station0" = {
|
||||||
device = "wlp6s0";
|
device = "wlp6s0";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user