Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on programming.dev
nix·Nix / NixOSbyKindaABigDyl

How to declaratively define Strongswan VPN connections for NetworkManager?

I have enabled the strongswan plugin for Network Manager via networking.networkmanager.enableStrongSwan.

I manually set up my work VPN using nm-applet, but obviously this won't come with me if I reinstall NixOS, so I'd like to set up the VPN using nix.

The problem is that networking.networkmanager doesn't seem to have any sort of vpn configuration system. How would I go about this?

View original on programming.dev
6

1 reply

On second thought, this could be a bad idea. It's my company's VPN. I'd have to keep track of my employer's certificate when backing up my config along with my username for the login and other stuff that could pose a security risk.

Still should be possible, but in this case, probably a bad idea lol

2

You reached the end

How to declaratively define Strongswan VPN connections for NetworkManager? | Spyke