summaryrefslogtreecommitdiffstats
path: root/jeschli/2configs/officevpn.nix
blob: eb0477d51bb9d7c19046c10fcc8524c1553db068 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
}