From d5bb5259e4ea86ab1e472dc4d1bcf897d0f6fba8 Mon Sep 17 00:00:00 2001 From: misuzu Date: Thu, 20 Apr 2023 13:55:09 +0300 Subject: [PATCH] nixos/netbird: allow configuring dns --- nixos/modules/services/networking/netbird.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/networking/netbird.nix b/nixos/modules/services/networking/netbird.nix index 5bd9e9ca6169..647c0ce3e6d1 100644 --- a/nixos/modules/services/networking/netbird.nix +++ b/nixos/modules/services/networking/netbird.nix @@ -41,9 +41,10 @@ in { documentation = [ "https://netbird.io/docs/" ]; after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; + path = with pkgs; [ + openresolv + ]; serviceConfig = { - AmbientCapabilities = [ "CAP_NET_ADMIN" ]; - DynamicUser = true; Environment = [ "NB_CONFIG=/var/lib/netbird/config.json" "NB_LOG_FILE=console"