mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 14:10:33 +03:00
Merge pull request #191352 from maifel-maifel/mr-networking-deprecation-note
nixos/networking: add a suggestion to use networkd options
This commit is contained in:
commit
d3fc91e579
2 changed files with 18 additions and 2 deletions
|
@ -465,7 +465,13 @@ in
|
||||||
networking.wireguard = {
|
networking.wireguard = {
|
||||||
|
|
||||||
enable = mkOption {
|
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;
|
type = types.bool;
|
||||||
# 2019-05-25: Backwards compatibility.
|
# 2019-05-25: Backwards compatibility.
|
||||||
default = cfg.interfaces != {};
|
default = cfg.interfaces != {};
|
||||||
|
@ -474,7 +480,13 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
interfaces = mkOption {
|
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 = {};
|
default = {};
|
||||||
example = {
|
example = {
|
||||||
wg0 = {
|
wg0 = {
|
||||||
|
|
|
@ -604,6 +604,10 @@ in
|
||||||
The configuration for each network interface. If
|
The configuration for each network interface. If
|
||||||
{option}`networking.useDHCP` is true, then every
|
{option}`networking.useDHCP` is true, then every
|
||||||
interface not listed here will be configured using DHCP.
|
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);
|
type = with types; attrsOf (submodule interfaceOpts);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue