Fix previous commit.

svn path=/nixos/trunk/; revision=13229
This commit is contained in:
Nicolas Pierron 2008-11-08 21:45:58 +00:00
parent 4a55f02005
commit b73a579d18
2 changed files with 7 additions and 7 deletions

View file

@ -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)
];
}

View file

@ -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];