1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

nixos/openvpn: add extraArgs option (#339016)

This commit is contained in:
Aaron Andersen 2024-09-10 19:36:32 -04:00 committed by GitHub
commit 7398438255
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -64,7 +64,7 @@ let
path = [ pkgs.iptables pkgs.iproute2 pkgs.nettools ]; path = [ pkgs.iptables pkgs.iproute2 pkgs.nettools ];
serviceConfig.ExecStart = "@${openvpn}/sbin/openvpn openvpn --suppress-timestamps --config ${configFile}"; serviceConfig.ExecStart = "@${openvpn}/sbin/openvpn openvpn --suppress-timestamps --config ${configFile} ${cfg.extraArgs}";
serviceConfig.Restart = "always"; serviceConfig.Restart = "always";
serviceConfig.Type = "notify"; serviceConfig.Type = "notify";
}; };
@ -181,6 +181,15 @@ in
''; '';
}; };
extraArgs = mkOption {
default = null;
type = listOf str;
description = ''
Additional command line arguments to pass to this OpenVPN instance.
'';
apply = lib.escapeShellArgs;
};
authUserPass = mkOption { authUserPass = mkOption {
default = null; default = null;
description = '' description = ''