diff options
author | Alan Pearce | 2024-06-25 10:36:34 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-25 10:36:34 +0200 |
commit | 1575bebf3c32235dd6593e5bf5b305f1d2c7fe8d (patch) | |
tree | ed9638526e2078d4b9c1e7a08333b07d996aa57a | |
parent | 25cc96e57d7a97f62a986596fa9fa4d217e8eb24 (diff) | |
download | nixfiles-1575bebf3c32235dd6593e5bf5b305f1d2c7fe8d.tar.lz nixfiles-1575bebf3c32235dd6593e5bf5b305f1d2c7fe8d.tar.zst nixfiles-1575bebf3c32235dd6593e5bf5b305f1d2c7fe8d.zip |
limit use of unfree packages
-rw-r--r-- | user/config.nix | 14 |
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 |