25 lines
451 B
Nix
25 lines
451 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: {
|
|
options = {
|
|
games.enable = lib.mkEnableOption "";
|
|
};
|
|
config = lib.mkIf config.games.enable {
|
|
programs.steam.enable = true;
|
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
|
builtins.elem (lib.getName pkg) [
|
|
"steam-original"
|
|
"steam"
|
|
"steam-run"
|
|
"steam-unwrapped"
|
|
];
|
|
environment.systemPackages = with pkgs; [
|
|
mangohud
|
|
lutris-free
|
|
];
|
|
};
|
|
}
|