Hello, this is my first post on the Nix Forums please let me know if i posted this in the right place :P.
So ive been working on setting up a wireguard VPN at my residents, so i can acess my server outside of my network.
i first played with wg-easy in docker, and got it working. However the GUI was very limiting, ideally i want to setup split tunneling at some point and decided using my nix config would be better suited. But right now i got a semi working wireguard config? I decided to use the " Setting up WireGuard server/client with wg-quick and dnsmasq" route. Except for one part, at the end of the server config portion there is.
"To enable dnsmasq and only serve DNS requests to the WireGuard interface add the following:
{
…
services = {
…
dnsmasq = {
enable = true;
extraConfig = ‘’
interface=wg0
‘’;
};
…
};
…
}
"
when i rebuild switch it says “service.dnsmasq.extraConfig” has been replaced with service.dnsmasq.settings but i cant figure out how to do the same thing with dnsmasq.settings.
There doesnt seem to be an option for it?
at least that i know of .
i can connect to my server via wireguard but can only access server IP’s like 192.168.9.189:8080. Which runs a searx instance, but when the VPN is running my server cant resolve a webpage. I think its a DNS problem because, well i havent setup up dnsmasq.settings. I don’t have a clue on how to fix this, i have spent many hours searching for a solution. Any help would be greatly appreciated.
wiki page im using for reference.
https://nixos.wiki/wiki/WireGuard