1 { config, lib, pkgs, ... }:
4 cfg = config.programs.openvpn3;
7 options.programs.openvpn3 = {
8 enable = lib.mkEnableOption "the openvpn3 client";
9 package = lib.mkOption {
10 type = lib.types.package;
11 default = pkgs.openvpn3.override {
12 enableSystemdResolved = config.services.resolved.enable;
14 defaultText = lib.literalExpression ''pkgs.openvpn3.override {
15 enableSystemdResolved = config.services.resolved.enable;
18 Which package to use for `openvpn3`.
23 config = lib.mkIf cfg.enable {
24 services.dbus.packages = [
28 users.users.openvpn = {
30 uid = config.ids.uids.openvpn;
34 users.groups.openvpn = {
35 gid = config.ids.gids.openvpn;
38 environment.systemPackages = [