2024-02-29 09:53:34 -05:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
# Gaming-related settings
|
|
|
|
let
|
|
|
|
cfg = config.host.apps.gaming;
|
|
|
|
in
|
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
host.apps.gaming.enable = mkEnableOption (mdDoc "Enables gaming features");
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2024-05-02 17:14:21 -04:00
|
|
|
host.ui.flatpak.enable = true;
|
|
|
|
services.flatpak.packages = [
|
2024-02-29 09:53:34 -05:00
|
|
|
"gg.minion.Minion"
|
|
|
|
"com.valvesoftware.Steam"
|
|
|
|
"org.firestormviewer.FirestormViewer"
|
|
|
|
];
|
2024-03-11 12:27:30 -04:00
|
|
|
|
|
|
|
# Enable Xbox controller driver (XPadNeo)
|
|
|
|
boot = {
|
|
|
|
extraModulePackages = with config.boot.kernelPackages; [ xpadneo ];
|
|
|
|
kernelModules = [ "hid_xpadneo" ];
|
|
|
|
};
|
2024-02-29 09:53:34 -05:00
|
|
|
};
|
|
|
|
}
|