summaryrefslogtreecommitdiffstats
path: root/jeschli/2configs/officevpn.nix
diff options
context:
space:
mode:
authorlassulus <lass@blue.r>2018-07-31 20:11:50 +0200
committerlassulus <lass@blue.r>2018-07-31 20:11:50 +0200
commitcf13e1ac12692a9b23d7af5dbd11ee68782948ad (patch)
treef1986cbe484fe262162c3ae71f11ec37448f6fe7 /jeschli/2configs/officevpn.nix
parentfe1d0ddb5a3106f0fb910febc385db1555ec5e8d (diff)
parent1de97fcef0a82307b3405d1b24ba5a999b572804 (diff)
Merge remote-tracking branch 'prism/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
+}
+