nix/modules/apps/gui/games/default.nix
2024-09-15 10:25:38 +02:00

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
];
};
}