nixos/networking: add a suggestion to use networkd options
This commit is contained in:
parent
1637945189
commit
12d64e041b
@ -436,7 +436,13 @@ in
|
||||
networking.wireguard = {
|
||||
|
||||
enable = mkOption {
|
||||
description = lib.mdDoc "Whether to enable WireGuard.";
|
||||
description = lib.mdDoc ''
|
||||
Whether to enable WireGuard.
|
||||
|
||||
Please note that {option}`systemd.network.netdevs` has more features
|
||||
and is better maintained. When building new things, it is advised to
|
||||
use that instead.
|
||||
'';
|
||||
type = types.bool;
|
||||
# 2019-05-25: Backwards compatibility.
|
||||
default = cfg.interfaces != {};
|
||||
@ -445,7 +451,13 @@ in
|
||||
};
|
||||
|
||||
interfaces = mkOption {
|
||||
description = lib.mdDoc "WireGuard interfaces.";
|
||||
description = lib.mdDoc ''
|
||||
WireGuard interfaces.
|
||||
|
||||
Please note that {option}`systemd.network.netdevs` has more features
|
||||
and is better maintained. When building new things, it is advised to
|
||||
use that instead.
|
||||
'';
|
||||
default = {};
|
||||
example = {
|
||||
wg0 = {
|
||||
|
@ -604,6 +604,10 @@ in
|
||||
The configuration for each network interface. If
|
||||
{option}`networking.useDHCP` is true, then every
|
||||
interface not listed here will be configured using DHCP.
|
||||
|
||||
Please note that {option}`systemd.network.netdevs` has more features
|
||||
and is better maintained. When building new things, it is advised to
|
||||
use that instead.
|
||||
'';
|
||||
type = with types; attrsOf (submodule interfaceOpts);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user