all repos — nixfiles @ 1575bebf3c32235dd6593e5bf5b305f1d2c7fe8d

System and user configuration, managed by nix and home-manager

limit use of unfree packages
Alan Pearce alan@alanpearce.eu
Tue, 25 Jun 2024 10:36:34 +0200
commit

1575bebf3c32235dd6593e5bf5b305f1d2c7fe8d

parent

25cc96e57d7a97f62a986596fa9fa4d217e8eb24

1 files changed, 11 insertions(+), 3 deletions(-)

jump to
M user/config.nixuser/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