* Enable IPv6 support by default. (Note that most NixOS systems
already had the ipv6 kernel module loaded, because dhclient needs it.) svn path=/nixos/trunk/; revision=26034
This commit is contained in:
parent
5bdc1a9db7
commit
9f755eb3a4
@ -21,7 +21,7 @@ let
|
|||||||
default_privs = nobody
|
default_privs = nobody
|
||||||
|
|
||||||
''
|
''
|
||||||
+ optionalString (config.services.gw6c.enable || config.networking.nativeIPv6) (''
|
+ optionalString (config.services.gw6c.enable || config.networking.enableIPv6) (''
|
||||||
inet_protocols = all
|
inet_protocols = all
|
||||||
'')
|
'')
|
||||||
+ (if cfg.networks != null then
|
+ (if cfg.networks != null then
|
||||||
|
@ -26,11 +26,10 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.nativeIPv6 = mkOption {
|
networking.enableIPv6 = mkOption {
|
||||||
default = false;
|
default = true;
|
||||||
description = ''
|
description = ''
|
||||||
Whether to use IPv6 even though gw6c is not used. For example,
|
Whether to enable support for IPv6.
|
||||||
for Postfix.
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -145,6 +144,8 @@ in
|
|||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|
||||||
|
boot.kernelModules = optional cfg.enableIPv6 "ipv6";
|
||||||
|
|
||||||
environment.systemPackages =
|
environment.systemPackages =
|
||||||
[ pkgs.host
|
[ pkgs.host
|
||||||
pkgs.iproute
|
pkgs.iproute
|
||||||
|
Loading…
x
Reference in New Issue
Block a user