|
|
|
@ -172,7 +172,10 @@
|
|
|
|
|
(symlink (string-append #$zsh "/bin/zsh") "/bin/zsh"))))
|
|
|
|
|
|
|
|
|
|
(define (metznet-etc-service configuration)
|
|
|
|
|
'())
|
|
|
|
|
'(("/etc/openvpn/ta.key" (local-file "ta.key"))
|
|
|
|
|
("/etc/openvpn/ca.crt" (local-file "ca.crt"))
|
|
|
|
|
("/etc/openvpn/client.crt" (local-file "client.crt"))
|
|
|
|
|
("/etc/openvpn/client.key" (local-file "client.key"))))
|
|
|
|
|
|
|
|
|
|
(define metznet-service-type
|
|
|
|
|
(service-type (name 'metznet-service)
|
|
|
|
@ -251,6 +254,8 @@
|
|
|
|
|
(pid-file
|
|
|
|
|
"/var/run/openvpn/client.pid")
|
|
|
|
|
(persist-key? #f)
|
|
|
|
|
(remote (list (openvpn-remote-configuration
|
|
|
|
|
(name "vpn.metznet.ca"))))
|
|
|
|
|
(tls-auth
|
|
|
|
|
"/etc/openvpn/ta.key"))))
|
|
|
|
|
(modify-services %base-services
|
|
|
|
|