[openvpn] Add client
This commit is contained in:
parent
2a8049a774
commit
b9e72e8f92
3 changed files with 16 additions and 0 deletions
|
|
@ -20,6 +20,7 @@
|
||||||
networking = {
|
networking = {
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
openconnect-sso.enable = true;
|
openconnect-sso.enable = true;
|
||||||
|
openvpn.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
|
|
|
||||||
|
|
@ -2,5 +2,6 @@
|
||||||
imports = [
|
imports = [
|
||||||
./networkmanager
|
./networkmanager
|
||||||
./openconnect-sso
|
./openconnect-sso
|
||||||
|
./openvpn
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
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