This is my current configuration but protonvpn doesn’t work either on my desktop or laptop. When I try logging in it says invalid credentials despite them working on the protonvpn site. Any suggestions? I don’t need any particular network settings for day to day use.
This is what you added to your system, which is a GUI. If you are using gnome or KDE, you can go to the applications menu and open the ProtonVPN App. Or in a terminal, you can type protonvpn-app. Which will open a GUI where you log in, click on any server, and you are done.
2- Import the wireguard config in your nixos configuration
This one is the only one where you update your nix code. Proton VPN allows downloading the wireguard config directly (in the Download section). And then you can configure nix to use the file you downloaded.
You don’t use anything from protonvpn, you just configure wireguard (which is part of the linux kernel).
You can also take the content of the file, and manually write the wireguard config. Here’s a nice tutorial
3- Configure wireguard in Gnome or KDE
In this case, you can go to the graphical network tab of your operating system, and add a wireguard configuration, the same you would download in the previous step. Click and connect.