limit use of unfree packages
Alan Pearce alan@alanpearce.eu
Tue, 25 Jun 2024 10:36:34 +0200
1 files changed, 11 insertions(+), 3 deletions(-)
jump to
M user/config.nix → user/config.nix
@@ -1,6 +1,14 @@-{ pkgs }: { - allowUnfree = true; - allowUnfreePredicate = pkg: true; +{ pkgs }: +let + inherit (pkgs) lib; +in +{ + allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ + "beeper" + "discord" + "input-fonts" + "tabnine" + ]; input-fonts.acceptLicense = true; permittedInsecurePackages = [ "electron-27.3.11" # for logseq 0.10.9