Well I have a vpn profile but there no /etc/openvpn in nixos. Can anybody help with this?
sudo openvpn path_to_the_file.ovpn
Or you can manually construct a systemd service to run it on boot:
systemd.services.my-openvpn = {
description = "My OpenVPN connection";
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = "${pkgs.openvpn}/bin/openvpn path_to_file.ovpn";
};
};
2 Likes
There’s also services.openvpn.servers.<name>.config
which points to a .ovpn
file.
2 Likes
ohh, thanks!!! It really helped