Skip to content

Commit

Permalink
nixos/system/networking/resolved: ensure resolved is used
Browse files Browse the repository at this point in the history
Disable dnsmasq to prevent collisions
  • Loading branch information
khaneliman committed Aug 1, 2024
1 parent b80b0f3 commit e290966
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/nixos/system/networking/resolved/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 == "systemd-resolved") {
networking.networkmanager.dns = "systemd-resolved";
services.dnsmasq.enable = mkForce false;
services.resolved = {
enable = true;

Expand Down

0 comments on commit e290966

Please sign in to comment.