diff options
Diffstat (limited to 'doc/configuration.xml')
-rw-r--r-- | doc/configuration.xml | 4 |
1 files changed, 2 insertions, 2 deletions
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: ...); </programlisting> - Example to allow flash player only: + Example to allow flash player and visual studio code only: <programlisting> -allowUnfreePredicate = (pkg: pkgs.lib.hasPrefix "flashplayer-" pkg.name); +allowUnfreePredicate = with builtins; (pkg: elem (parseDrvName pkg.name).name [ "flashplayer" "vscode" ]); </programlisting> </para> |