Maroka-chan / VPN-Confinement

A NixOS module which lets you route traffic from systemd services through a VPN while preventing DNS leaks.
GNU General Public License v3.0
77 stars 2 forks source link

"The option vpnnamespaces is used but not defined" #12

Closed rasmus-kirk closed 1 month ago

rasmus-kirk commented 2 months ago

The following error appears if the module is imported with no vpnnamespaces defined.

poperigby commented 2 months ago

That just means that vpnnamespaces is a required option, meaning you have to set it.

rasmus-kirk commented 2 months ago

In my opinion, importing a flake should not require you to set any options. If you do set options from an imported flake, I would however find it reasonable that they require other options to be set.

poperigby commented 2 months ago

That makes sense. I think if you use systemd.services.<name>.vpnconfinement, it should require vpnnamespaces.

Maroka-chan commented 1 month ago

Should be fixed by e8ea92903b36d096c01f977393fbe79f8ed25b42