1 { config, lib, pkgs, ... }:
3 options.services.expressvpn.enable = lib.mkOption {
7 Enable the ExpressVPN daemon.
11 config = lib.mkIf config.services.expressvpn.enable {
12 boot.kernelModules = [ "tun" ];
14 systemd.services.expressvpn = {
15 description = "ExpressVPN Daemon";
17 ExecStart = "${pkgs.expressvpn}/bin/expressvpnd";
18 Restart = "on-failure";
21 wantedBy = [ "multi-user.target" ];
22 wants = [ "network-online.target" ];
23 after = [ "network.target" "network-online.target" ];
27 meta.maintainers = with lib.maintainers; [ yureien ];