2014-04-14 16:26:48 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
2010-01-07 18:53:03 +01:00
|
|
|
|
2014-04-14 16:26:48 +02:00
|
|
|
with lib;
|
2010-01-07 18:53:03 +01:00
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
2011-09-14 20:20:50 +02:00
|
|
|
|
2010-01-07 18:53:03 +01: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 20:20:50 +02:00
|
|
|
|
2010-01-07 18:53:03 +01:00
|
|
|
config = mkIf config.networking.wicd.enable {
|
|
|
|
|
|
|
|
environment.systemPackages = [pkgs.wicd];
|
|
|
|
|
2016-01-06 07:50:18 +01:00
|
|
|
systemd.services.wicd = {
|
|
|
|
after = [ "network-interfaces.target" ];
|
|
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
script = "${pkgs.wicd}/sbin/wicd -f";
|
|
|
|
};
|
2010-01-07 18:53:03 +01:00
|
|
|
|
|
|
|
services.dbus.enable = true;
|
|
|
|
services.dbus.packages = [pkgs.wicd];
|
|
|
|
};
|
|
|
|
}
|