diff options
author | William A. Kennington III <william@wkennington.com> | 2014-11-26 11:19:31 -0800 |
---|---|---|
committer | William A. Kennington III <william@wkennington.com> | 2014-11-26 16:29:24 -0800 |
commit | 1860ee27b0e4aae2cc0ed997e14b0d3289ce498f (patch) | |
tree | 09c605f6540a30bd074b74ea94760f1736c55f75 /nixos/modules/services/networking/dhcpcd.nix | |
parent | 4f2a041345445dc4727b3d56e7458552517e6cd5 (diff) | |
download | nixpkgs-1860ee27b0e4aae2cc0ed997e14b0d3289ce498f.tar nixpkgs-1860ee27b0e4aae2cc0ed997e14b0d3289ce498f.tar.gz nixpkgs-1860ee27b0e4aae2cc0ed997e14b0d3289ce498f.tar.bz2 nixpkgs-1860ee27b0e4aae2cc0ed997e14b0d3289ce498f.tar.lz nixpkgs-1860ee27b0e4aae2cc0ed997e14b0d3289ce498f.tar.xz nixpkgs-1860ee27b0e4aae2cc0ed997e14b0d3289ce498f.tar.zst nixpkgs-1860ee27b0e4aae2cc0ed997e14b0d3289ce498f.zip |
nixos/networking: Fixes
Diffstat (limited to 'nixos/modules/services/networking/dhcpcd.nix')
-rw-r--r-- | nixos/modules/services/networking/dhcpcd.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/networking/dhcpcd.nix b/nixos/modules/services/networking/dhcpcd.nix index 115ca5ce2ab..1ad8cbae15c 100644 --- a/nixos/modules/services/networking/dhcpcd.nix +++ b/nixos/modules/services/networking/dhcpcd.nix @@ -15,7 +15,7 @@ let # Don't start dhcpcd on explicitly configured interfaces or on # interfaces that are part of a bridge, bond or sit device. ignoredInterfaces = - map (i: i.name) (filter (i: if i.useDHCP != null then i.useDHCP else i.ip4 != [ ] || i.ipAddress != null) interfaces) + map (i: i.name) (filter (i: if i.useDHCP != null then !i.useDHCP else i.ip4 != [ ] || i.ipAddress != null) interfaces) ++ mapAttrsToList (i: _: i) config.networking.sits ++ concatLists (attrValues (mapAttrs (n: v: v.interfaces) config.networking.bridges)) ++ concatLists (attrValues (mapAttrs (n: v: v.interfaces) config.networking.bonds)) @@ -28,7 +28,8 @@ let # If dhcp is disabled but explicit interfaces are enabled, # we need to provide dhcp just for those interfaces. allowInterfaces = arrayAppendOrNull cfg.allowInterfaces - (if !cfg.useDHCP && enableDHCP then map (i: i.name) (filter (i: i.useDHCP == true) interfaces) else null); + (if !config.networking.useDHCP && enableDHCP then + map (i: i.name) (filter (i: i.useDHCP == true) interfaces) else null); # Config file adapted from the one that ships with dhcpcd. dhcpcdConf = pkgs.writeText "dhcpcd.conf" @@ -71,7 +72,6 @@ let ${config.systemd.package}/bin/systemctl try-restart ntpd.service ${config.systemd.package}/bin/systemctl start ip-up.target - ${config.systemd.package}/bin/systemctl start network-online.target fi #if [ "$reason" = EXPIRE -o "$reason" = RELEASE -o "$reason" = NOCARRIER ] ; then |