framework: unfree predicate module

lf => yazy
add grayjay
This commit is contained in:
Tristan 2025-08-26 13:35:00 +01:00
parent 9e40da0a9c
commit 2219fb8619
10 changed files with 49 additions and 34 deletions

View file

@ -0,0 +1,16 @@
{
lib,
config,
...
}: {
options = {
allowUnfreePkgNames = lib.mkOption {
type = lib.types.listOf lib.types.str;
};
};
config = {
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) config.allowUnfreePkgNames;
};
}

View file

@ -6,14 +6,13 @@
}: let
user = config.user;
in {
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
# nonfree vscode required for dev containers
"vscode"
"steam-run"
"postman"
"drawio" # the creator had a hissyfit over a negative review: https://github.com/jgraph/drawio/discussions/4623
];
allowUnfreePkgNames = [
# nonfree vscode required for dev containers
"vscode"
"steam-run"
"postman"
"drawio" # the creator had a hissyfit over a negative review: https://github.com/jgraph/drawio/discussions/4623
];
nixpkgs.config.permittedInsecurePackages = [
"openssl-1.1.1w" # required for mongodb