dotfiles/modules/os/desktop/gaming.nix
eriedaberrie 3446218455 Initial commit
Note: not the actual initial commit.

I swear I will stop repeatedly force pushing to this single commit eventually
ok.
2024-11-13 02:02:37 -08:00

49 lines
996 B
Nix

{ pkgs, config, lib, inputs, ... }:
let
cfg = config.my.desktop.gaming;
in {
imports = [
inputs.nix-gaming.nixosModules.pipewireLowLatency
inputs.nix-gaming.nixosModules.platformOptimizations
];
options.my.desktop.gaming = {
enable = lib.mkEnableOption null;
};
config = lib.mkIf cfg.enable {
programs = {
steam = {
enable = true;
package = pkgs.steam.override {
extraEnv = {
MANGOHUD = true;
OBS_VKCAPTURE = true;
};
extraPkgs = pkgs: with pkgs; [
zstd
openssl
];
};
extraCompatPackages = with pkgs; [
proton-ge-bin
];
remotePlay.openFirewall = true;
platformOptimizations.enable = true;
};
gamemode = {
enable = true;
settings = {
general = {
renice = 10;
};
};
};
};
services.pipewire.lowLatency.enable = true;
};
}