summaryrefslogtreecommitdiffstats
path: root/jeschli/2configs/officevpn.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2018-08-28 22:53:17 +0200
committermakefu <github@syntax-fehler.de>2018-08-28 22:53:17 +0200
commit9c516e9504003cae2abed8a6e24f0b135ac98c4f (patch)
tree95c81a6f2cb9f47181608428b2234370c243eed9 /jeschli/2configs/officevpn.nix
parentc07f56b772f3ea58d2a4c0f504fe3df381f6a043 (diff)
parent413e0689acd4f6b322f9996950927ebd41d0e58c (diff)
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'jeschli/2configs/officevpn.nix')
-rw-r--r--jeschli/2configs/officevpn.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/jeschli/2configs/officevpn.nix b/jeschli/2configs/officevpn.nix
new file mode 100644
index 000000000..eb0477d51
--- /dev/null
+++ b/jeschli/2configs/officevpn.nix
@@ -0,0 +1,19 @@
+{ config, pkgs, ... }:
+
+{
+ nixpkgs.config.packageOverrides = pkgs: {
+ openvpn = pkgs.openvpn.override { pkcs11Support = true; useSystemd = false;};
+ };
+
+ environment.systemPackages = with pkgs; [
+ opensc
+ openvpn
+ yubikey-manager
+ ];
+
+ services.pcscd.enable = true;
+
+ # To start the vpn manually execute
+ # $ openvpn --config clien.ovpn
+}
+