nixos-config/modules/programs/gaming/default.nix

34 lines
675 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
let
cfg = config.ptw.programs.gaming;
in {
options.ptw.programs.gaming = {
enable = lib.mkEnableOption "Configure gaming options";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
wineWowPackages.staging winetricks
protontricks
lutris-free-wrapped
2022-03-19 14:19:11 +00:00
2022-03-27 17:31:00 +00:00
(pkgs.callPackage ./wrapper.nix {
inherit (pkgs) retroarch;
cores = with pkgs.libretro; [
mgba mupen64plus melonds desmume dolphin
];
})
2022-03-19 14:19:11 +00:00
steam-wrapped # Custom package
2022-06-15 17:43:12 +00:00
# Broken
# gamescope
corectrl
];
2022-03-19 14:19:11 +00:00
hardware.steam-hardware.enable = true;
};
}