mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
expressvpn: init at 3.25.0.13
This commit is contained in:
parent
aee69b6368
commit
feff6ddbe7
6 changed files with 139 additions and 0 deletions
|
@ -771,6 +771,7 @@
|
|||
./services/networking/ergo.nix
|
||||
./services/networking/ergochat.nix
|
||||
./services/networking/eternal-terminal.nix
|
||||
./services/networking/expressvpn.nix
|
||||
./services/networking/fakeroute.nix
|
||||
./services/networking/ferm.nix
|
||||
./services/networking/fireqos.nix
|
||||
|
|
29
nixos/modules/services/networking/expressvpn.nix
Normal file
29
nixos/modules/services/networking/expressvpn.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
{
|
||||
options.services.expressvpn.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Enable the ExpressVPN daemon.
|
||||
'';
|
||||
};
|
||||
|
||||
config = mkIf config.services.expressvpn.enable {
|
||||
boot.kernelModules = [ "tun" ];
|
||||
|
||||
systemd.services.expressvpn = {
|
||||
description = "ExpressVPN Daemon";
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.expressvpn}/bin/expressvpnd";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 5;
|
||||
};
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network.target" "network-online.target" ];
|
||||
};
|
||||
};
|
||||
|
||||
meta.maintainers = with maintainers; [ yureien ];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue