depot/third_party/nixpkgs/nixos/modules/services/networking/wicd.nix
Default email 9a250f78df Project import generated by Copybara.
GitOrigin-RevId: 8536aeb4154f5458994080bc4cf542695c144739
2020-05-03 19:38:23 +02:00

40 lines
797 B
Nix

{ 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];
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];
};
}