1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/nixos/modules/services/networking/wicd.nix

41 lines
797 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
with lib;
{
###### interface
options = {
networking.wicd.enable = mkOption {
type = types.bool;
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];
2016-01-06 06:50:18 +00:00
systemd.services.wicd = {
after = [ "network-pre.target" ];
before = [ "network.target" ];
wants = [ "network.target" ];
2016-01-06 06:50:18 +00:00
wantedBy = [ "multi-user.target" ];
script = "${pkgs.wicd}/sbin/wicd -f";
};
services.dbus.enable = true;
services.dbus.packages = [pkgs.wicd];
};
}