From f0c0f0aa9db1901ab21294b0a6355413ae88af62 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Fri, 26 Apr 2024 18:54:47 +0100 Subject: [PATCH] ops/nixos/client: adapt to new networkmanager config style --- ops/nixos/lib/client.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ops/nixos/lib/client.nix b/ops/nixos/lib/client.nix index 885aa6dd9e..b0507636f7 100644 --- a/ops/nixos/lib/client.nix +++ b/ops/nixos/lib/client.nix @@ -12,11 +12,9 @@ in programs.ssh.startAgent = true; nix.gc.automatic = false; services.udisks2.enable = true; - networking.networkmanager.extraConfig = lib.mkAfter '' - [connection] - # Enable mDNS resolver/responder by default unless otherwise configured. - connection.mdns=2 - ''; + + # Enable mDNS resolver/responder by default unless otherwise configured. + networking.networkmanager.settings.connection."connection.mdns" = 2; environment.systemPackages = with pkgs; lib.mkMerge [ (lib.mkIf config.virtualisation.podman.enable [ podman-compose ])