mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
eb6e1310b8
svn path=/nixos/trunk/; revision=29285
41 lines
716 B
Nix
41 lines
716 B
Nix
{ 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];
|
|
|
|
};
|
|
|
|
}
|