[openvpn] Add client
This commit is contained in:
parent
2a8049a774
commit
b9e72e8f92
3 changed files with 16 additions and 0 deletions
14
nixos/modules/networking/openvpn/default.nix
Normal file
14
nixos/modules/networking/openvpn/default.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.sisyphus.networking.openvpn;
|
||||
in {
|
||||
options.sisyphus.networking.openvpn.enable = lib.mkEnableOption "OpenVPN client";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.openvpn3.enable = true;
|
||||
|
||||
# https://github.com/NixOS/nixpkgs/issues/379074
|
||||
services.resolved.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue