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

29 lines
596 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 {
2022-03-19 14:19:11 +00:00
nixpkgs.config.retroarch = {
enableDesmume = true;
enableMGBA = true;
enableDolphin = true;
};
environment.systemPackages = with pkgs; [
2022-02-02 14:55:38 +00:00
winePackages.stagingFull winetricks lutris-free-wrapped
2022-03-19 14:19:11 +00:00
retroarch
steam-wrapped # Custom package
nur.repos.dukzcry.gamescope
];
2022-03-19 14:19:11 +00:00
hardware.steam-hardware.enable = true;
};
}