summaryrefslogtreecommitdiffstats
path: root/jeschli/1systems/bln/dcso-vpn.nix
diff options
context:
space:
mode:
authorlassulus <lass@blue.r>2018-09-29 19:07:07 +0200
committerlassulus <lass@blue.r>2018-09-29 19:07:07 +0200
commitb9380d6aba5f4ad04cedc4fb6a4213949791e830 (patch)
tree84b386b3c68aa46d982d3018984519914952e9d8 /jeschli/1systems/bln/dcso-vpn.nix
parentd04fa5351158f91f8c38f1b0cc072def3f357e05 (diff)
parent6cf8b42c0bf5b256db0bcd3c051c528052cfe5b2 (diff)
Merge remote-tracking branch 'enklave/master'
Diffstat (limited to 'jeschli/1systems/bln/dcso-vpn.nix')
-rw-r--r--jeschli/1systems/bln/dcso-vpn.nix44
1 files changed, 0 insertions, 44 deletions
diff --git a/jeschli/1systems/bln/dcso-vpn.nix b/jeschli/1systems/bln/dcso-vpn.nix
deleted file mode 100644
index 0a5623bf0..000000000
--- a/jeschli/1systems/bln/dcso-vpn.nix
+++ /dev/null
@@ -1,44 +0,0 @@
-with import <stockholm/lib>;
-{ ... }:
-
-{
-
- users.extraUsers = {
- dcsovpn = rec {
- name = "dcsovpn";
- uid = genid "dcsovpn";
- description = "user for running dcso openvpn";
- home = "/home/${name}";
- };
- };
-
- users.extraGroups.dcsovpn.gid = genid "dcsovpn";
-
- services.openvpn.servers = {
- dcso = {
- config = ''
- client
- dev tun
- tun-mtu 1356
- mssfix
- proto udp
- float
- remote 217.111.55.41 1194
- nobind
- user dcsovpn
- group dcsovpn
- persist-key
- persist-tun
- ca ${toString <secrets/dcsovpn/ca.pem>}
- cert ${toString <secrets/dcsovpn/cert.pem>}
- key ${toString <secrets/dcsovpn/cert.key>}
- verb 3
- mute 20
- auth-user-pass ${toString <secrets/dcsovpn/login.txt>}
- route-method exe
- route-delay 2
- '';
- updateResolvConf = true;
- };
- };
-}