diff --git a/system/options.nix b/system/options.nix index 4628fae2c54..9144492a539 100644 --- a/system/options.nix +++ b/system/options.nix @@ -31,10 +31,6 @@ let in { - require = [ - # newtworking - (import ../upstart-jobs/dhclient.nix) - ] time = { @@ -3056,6 +3052,9 @@ root ALL=(ALL) SETENV: ALL }; require = [ + # newtworking + (import ../upstart-jobs/dhclient.nix) + # hardware (import ../upstart-jobs/pcmcia.nix) ]; } diff --git a/upstart-jobs/dhclient.nix b/upstart-jobs/dhclient.nix index f72f2b7fe43..061af3d8f84 100644 --- a/upstart-jobs/dhclient.nix +++ b/upstart-jobs/dhclient.nix @@ -1,4 +1,5 @@ -{pkgs, config, ...}: +{pkgs, config #, ... +}: ###### interface let @@ -48,7 +49,7 @@ let # Don't start dhclient on explicitly configured interfaces. ignoredInterfaces = ["lo"] ++ - map (i: i.name) (lib.filter (i: i ? ipAddress) interfaces); + map (i: i.name) (lib.filter (i: i ? ipAddress) config.networking.interfaces); stateDir = "/var/lib/dhcp"; # Don't use /var/state/dhcp; not FHS-compliant. in @@ -60,7 +61,7 @@ in ]; services = { - extraJobs = IfEnable [{ + extraJobs = ifEnable [{ name = "dhclient"; extraPath = [dhcp];