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