nix/modules/games/steam/default.nix

25 lines
451 B
Nix
Raw Normal View History

2024-10-08 14:47:39 +02:00
{
lib,
pkgs,
config,
...
}: {
options = {
2024-10-13 13:54:32 +02:00
games.enable = lib.mkEnableOption "";
2024-10-08 14:47:39 +02:00
};
2024-10-13 13:54:32 +02:00
config = lib.mkIf config.games.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-09-21 09:45:11 +02:00
];
2024-10-08 14:47:39 +02:00
};
2024-09-18 19:27:14 +02:00
}