nixos-config/modules/programs/gaming/default.nix
2022-03-19 15:19:11 +01:00

29 lines
596 B
Nix

{ 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 {
nixpkgs.config.retroarch = {
enableDesmume = true;
enableMGBA = true;
enableDolphin = true;
};
environment.systemPackages = with pkgs; [
winePackages.stagingFull winetricks lutris-free-wrapped
retroarch
steam-wrapped # Custom package
nur.repos.dukzcry.gamescope
];
hardware.steam-hardware.enable = true;
};
}