diff --git a/doc/configuration.xml b/doc/configuration.xml index ffeb7cf554bd..caff1e510cdd 100644 --- a/doc/configuration.xml +++ b/doc/configuration.xml @@ -46,10 +46,10 @@ $ export NIXPKGS_ALLOW_UNFREE=1 allowUnfreePredicate = (pkg: ...); - Example to allow flash player only: + Example to allow flash player and visual studio code only: -allowUnfreePredicate = (pkg: pkgs.lib.hasPrefix "flashplayer-" pkg.name); +allowUnfreePredicate = with builtins; (pkg: elem (parseDrvName pkg.name).name [ "flashplayer" "vscode" ]);