mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
9819cdc71a
taken from http://bazaar.launchpad.net/~wicd-devel/wicd/experimental/view/head:/other/wicd.service
40 lines
772 B
Nix
40 lines
772 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-pre.target" ];
|
|
before = [ "network.target" ];
|
|
wants = [ "network.target" ];
|
|
wantedBy = [ "multi-user.target" ];
|
|
script = "${pkgs.wicd}/sbin/wicd -f";
|
|
};
|
|
|
|
services.dbus.enable = true;
|
|
services.dbus.packages = [pkgs.wicd];
|
|
};
|
|
}
|