1 { config, lib, pkgs, ... }:
6 cfg = config.programs.openvpn3;
9 options.programs.openvpn3 = {
10 enable = mkEnableOption (lib.mdDoc "the openvpn3 client");
13 default = pkgs.openvpn3.override {
14 enableSystemdResolved = config.services.resolved.enable;
16 defaultText = literalExpression ''pkgs.openvpn3.override {
17 enableSystemdResolved = config.services.resolved.enable;
19 description = lib.mdDoc ''
20 Which package to use for `openvpn3`.
25 config = mkIf cfg.enable {
26 services.dbus.packages = [
30 users.users.openvpn = {
32 uid = config.ids.uids.openvpn;
36 users.groups.openvpn = {
37 gid = config.ids.gids.openvpn;
40 environment.systemPackages = [