nixpkgs-suyu/nixos/modules/services/networking/wicd.nix
2016-01-07 06:39:06 +00:00

37 lines
706 B
Nix

{ config, lib, pkgs, ... }:
with 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];
systemd.services.wicd = {
after = [ "network-interfaces.target" ];
wantedBy = [ "multi-user.target" ];
script = "${pkgs.wicd}/sbin/wicd -f";
};
services.dbus.enable = true;
services.dbus.packages = [pkgs.wicd];
};
}