.files/nix/configurations/vanadium/nixos/unfree-predicate.nix
Léana 江 ebf8468807
tree-wide: format with nixfmt
Another saturday another useless formatter change.
It's my dotfiles, after all

alejandra doesn't handle c-style inline comments well.
2025-11-08 10:15:58 +08:00

29 lines
397 B
Nix

{ lib, ... }:
{
nixpkgs.config.allowUnfreePredicate = lib.mkDefault (
pkg:
let
name = lib.getName pkg;
in
builtins.elem name [
"languagetool"
"vscode"
"code"
"tampermonkey"
"aseprite"
"posy-cursors"
"discord"
]
|| builtins.any (lib.flip lib.hasInfix name) [
# Scanner
"brscan5"
"steam"
]
);
}