nix/modules/games/steam/default.nix

26 lines
471 B
Nix
Raw Normal View History

2024-10-08 14:47:39 +02:00
{
lib,
pkgs,
config,
...
}: {
options = {
2024-11-24 20:15:38 +01:00
steam.enable = lib.mkEnableOption "";
2024-10-08 14:47:39 +02:00
};
2024-11-24 20:15:38 +01:00
config = lib.mkIf config.steam.enable {
2024-10-26 21:48:09 +02:00
programs.steam.enable = true;
2024-10-08 14:47:39 +02:00
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"steam-original"
"steam"
"steam-run"
2024-10-26 21:48:09 +02:00
"steam-unwrapped"
2024-10-08 14:47:39 +02:00
];
environment.systemPackages = with pkgs; [
mangohud
lutris-free
2024-12-24 17:40:10 +01:00
prismlauncher
2024-09-21 09:45:11 +02:00
];
2024-10-08 14:47:39 +02:00
};
2024-09-18 19:27:14 +02:00
}