Adding wicd, taking in the patch sent by roconnor to nix-dev on 2010-01-07.

svn path=/nixos/trunk/; revision=19298
This commit is contained in:
Lluís Batlle i Rossell 2010-01-07 17:53:03 +00:00
parent 4c2fe97acc
commit fa2a6f835f
2 changed files with 42 additions and 0 deletions

View File

@ -90,6 +90,7 @@
./services/networking/ssh/sshd.nix
./services/networking/tftpd.nix
./services/networking/vsftpd.nix
./services/networking/wicd.nix
./services/networking/wpa_supplicant.nix
./services/networking/xinetd.nix
./services/printing/cupsd.nix

View File

@ -0,0 +1,41 @@
{ config, pkgs, ... }:
with pkgs.lib;
{
###### interface
options = {
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
config = mkIf config.networking.wicd.enable {
environment.systemPackages = [pkgs.wicd];
jobs.wicd =
{ startOn = "started network-interfaces";
stopOn = "stopping network-interfaces";
script =
"${pkgs.wicd}/sbin/wicd -f";
};
services.dbus.enable = true;
services.dbus.packages = [pkgs.wicd];
};
}