2014-04-14 15:26:48 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
2010-01-07 17:53:03 +00:00
|
|
|
|
2014-04-14 15:26:48 +01:00
|
|
|
with lib;
|
2010-01-07 17:53:03 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
2011-09-14 19:20:50 +01:00
|
|
|
|
2010-01-07 17:53:03 +00:00
|
|
|
networking.wicd.enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = ''
|
|
|
|
Whether to start <command>wicd</command>. Wired and
|
|
|
|
wireless network configurations can then be managed by
|
|
|
|
wicd-client.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
2011-09-14 19:20:50 +01:00
|
|
|
|
2010-01-07 17:53:03 +00:00
|
|
|
config = mkIf config.networking.wicd.enable {
|
|
|
|
|
|
|
|
environment.systemPackages = [pkgs.wicd];
|
|
|
|
|
2011-09-14 19:20:50 +01:00
|
|
|
jobs.wicd =
|
2010-01-07 17:53:03 +00:00
|
|
|
{ startOn = "started network-interfaces";
|
|
|
|
stopOn = "stopping network-interfaces";
|
|
|
|
|
|
|
|
script =
|
|
|
|
"${pkgs.wicd}/sbin/wicd -f";
|
|
|
|
};
|
|
|
|
|
|
|
|
services.dbus.enable = true;
|
|
|
|
services.dbus.packages = [pkgs.wicd];
|
2011-09-14 19:20:50 +01:00
|
|
|
|
2010-01-07 17:53:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|