From 61ba08a9bf9a85623b0d1c8c47019ef1b368e16f Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Sat, 16 Dec 2023 13:07:12 +0100 Subject: [PATCH] opt out of dotnet telemetry --- modules/buildtools.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/modules/buildtools.nix b/modules/buildtools.nix index 8dce623..484fea2 100644 --- a/modules/buildtools.nix +++ b/modules/buildtools.nix @@ -23,9 +23,14 @@ in { ]; }) (lib.mkIf cfg.dotnet { - environment.systemPackages = with pkgs; [ - dotnet-sdk_8 - ]; + environment = { + systemPackages = with pkgs; [ + dotnet-sdk_8 + ]; + variables = { + DOTNET_CLI_TELEMETRY_OPTOUT = "1"; + }; + }; }) (lib.mkIf cfg.rust { environment.systemPackages = with pkgs; [