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

View file

@ -1,16 +1,11 @@
{
lib,
pkgs,
...
}: {
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"steam"
"steam-unwrapped"
"steam-run"
"steam-original"
"osu-lazer"
];
{...}: {
allowUnfreePkgNames = [
"steam"
"steam-unwrapped"
"steam-run"
"steam-original"
"osu-lazer"
];
programs.steam = {
enable = true;
remotePlay.openFirewall = true;

View file

@ -102,4 +102,8 @@
services.udev.extraRules = ''
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="3434", ATTRS{idProduct}=="0e60", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"
'';
allowUnfreePkgNames = [
"grayjay"
];
}