Fix previous commit.
svn path=/nixos/trunk/; revision=13229
This commit is contained in:
parent
4a55f02005
commit
b73a579d18
|
@ -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)
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue