nix/modules/games/steam/default.nix
2024-10-19 19:50:22 +02:00

25 lines
462 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-1.0.0.81"
];
environment.systemPackages = with pkgs; [
mangohud
lutris-free
];
};
}