summaryrefslogtreecommitdiffstats
path: root/jeschli/2configs/officevpn.nix
diff options
context:
space:
mode:
authorjeschli <jeschli@gmail.com>2018-07-31 19:24:39 +0200
committerjeschli <jeschli@gmail.com>2018-07-31 19:24:39 +0200
commit1de97fcef0a82307b3405d1b24ba5a999b572804 (patch)
treef37dcc0e861e9252d2e635546f12fadaca2bd906 /jeschli/2configs/officevpn.nix
parent101733029e93a2d3ee8de8ed1d6039aacb010a4e (diff)
parent63a761b4da5262749c4cb122739666d412456776 (diff)
Merge remote-tracking branch 'origin/staging/jeschli'
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
+}
+