diff --git a/pkgs/top-level/config.nix b/pkgs/top-level/config.nix index a1a50ec17840..c3c78e9d3e80 100644 --- a/pkgs/top-level/config.nix +++ b/pkgs/top-level/config.nix @@ -274,6 +274,18 @@ let } ''; }; + + microsoftVisualStudioLicenseAccepted = mkOption { + type = types.bool; + default = false; + # getEnv part is in check-meta.nix + defaultText = literalExpression ''false || builtins.getEnv "NIXPKGS_ALLOW_UNFREE" == "1"''; + description = '' + If the Microsoft Visual Studio license has been accepted. + + Please read https://www.visualstudio.com/license-terms/mt644918/ and enable this config if you accept. + ''; + }; }; in