nix/modules/games/steam/default.nix

24 lines
426 B
Nix
Raw Normal View History

2024-10-08 14:47:39 +02:00
{
lib,
pkgs,
config,
...
}: {
options = {
steam.enable = lib.mkEnableOption "";
};
config = lib.mkIf config.norisk.enable {
programs.steam.enable = true;
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"steam-original"
"steam"
"steam-run"
];
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
}