27 lines
471 B
Nix
27 lines
471 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
|
||
|
];
|
||
|
};
|
||
|
}
|