summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2024-06-25 10:36:34 +0200
committerAlan Pearce2024-06-25 10:36:34 +0200
commit1575bebf3c32235dd6593e5bf5b305f1d2c7fe8d (patch)
treeed9638526e2078d4b9c1e7a08333b07d996aa57a /user
parent25cc96e57d7a97f62a986596fa9fa4d217e8eb24 (diff)
downloadnixfiles-1575bebf3c32235dd6593e5bf5b305f1d2c7fe8d.tar.lz
nixfiles-1575bebf3c32235dd6593e5bf5b305f1d2c7fe8d.tar.zst
nixfiles-1575bebf3c32235dd6593e5bf5b305f1d2c7fe8d.zip
limit use of unfree packages
Diffstat (limited to 'user')
-rw-r--r--user/config.nix14
1 files changed, 11 insertions, 3 deletions
diff --git a/user/config.nix b/user/config.nix
index c98bb405..503b1654 100644
--- a/user/config.nix
+++ b/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