Skip to content

Commit

Permalink
nixos/system/networking/dnsmasq: ensure dnsmasq is used
Browse files Browse the repository at this point in the history
Disable resolved to ensure no collisions
  • Loading branch information
khaneliman committed Aug 1, 2024
1 parent e290966 commit 3fbb0e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/nixos/system/networking/dnsmasq/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
...
}:
let
inherit (lib) mkIf;
inherit (lib) mkIf mkForce;

cfg = config.${namespace}.system.networking;
in
{
config = mkIf (cfg.dns == "dnsmasq") {
networking.networkmanager.dns = "dnsmasq";
services.resolved.enable = mkForce false;
services.dnsmasq = {
enable = true;

Expand Down

0 comments on commit 3fbb0e3

Please sign in to comment.