1
0
Fork 0
nix-configuration/modules/apps/gaming.nix

33 lines
610 B
Nix
Raw Normal View History

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