steam mod, move adwaita to homeModules

This commit is contained in:
Vinzenz Schroeter 2025-09-14 12:22:20 +02:00
parent 78400473ef
commit 084e819232
11 changed files with 113 additions and 101 deletions

View file

@ -0,0 +1,15 @@
{ lib, config, ... }:
{
options.allowedUnfreePackages = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = [ ];
example = [ "steam" ];
};
config = {
nixpkgs.config = {
# https://github.com/NixOS/nixpkgs/issues/197325#issuecomment-1579420085
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) config.allowedUnfreePackages;
};
};
}